Max
e055e489be
flake.lock: Update Flake lock file updates: • Added input 'shinobi': 'gitlab:Shinobi-Systems/Shinobi/a2faa40ab0e9952ff6a7fcf682534171614180c1' (2021-11-30)
48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
From 780f773004680b633cfc5c5f59cb320c58676947 Mon Sep 17 00:00:00 2001
|
|
From: Max <max@privatevoid.net>
|
|
Date: Tue, 15 Mar 2022 21:38:42 +0100
|
|
Subject: [PATCH 9/9] disable subscription bullshit
|
|
|
|
---
|
|
libs/startup.js | 4 ++--
|
|
libs/webServerSuperPaths.js | 2 +-
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/libs/startup.js b/libs/startup.js
|
|
index b67ecb9..b06abb1 100644
|
|
--- a/libs/startup.js
|
|
+++ b/libs/startup.js
|
|
@@ -380,7 +380,7 @@ module.exports = function(s,config,lang,io){
|
|
}
|
|
})
|
|
}
|
|
- config.userHasSubscribed = false
|
|
+ config.userHasSubscribed = true
|
|
//check disk space every 20 minutes
|
|
if(config.autoDropCache===true){
|
|
setInterval(function(){
|
|
@@ -400,7 +400,7 @@ module.exports = function(s,config,lang,io){
|
|
setTimeout(() => {
|
|
//check for subscription
|
|
checkSubscription(config.subscriptionId,function(hasSubcribed){
|
|
- config.userHasSubscribed = hasSubcribed
|
|
+ config.userHasSubscribed = true
|
|
//check terminal commander
|
|
checkForTerminalCommands(function(){
|
|
//load administrators (groups)
|
|
diff --git a/libs/webServerSuperPaths.js b/libs/webServerSuperPaths.js
|
|
index bfbccf9..1d1bf3b 100644
|
|
--- a/libs/webServerSuperPaths.js
|
|
+++ b/libs/webServerSuperPaths.js
|
|
@@ -167,7 +167,7 @@ module.exports = function(s,config,lang,app){
|
|
}
|
|
checkSubscription(subscriptionId,function(hasSubcribed){
|
|
endData.ok = hasSubcribed
|
|
- config.userHasSubscribed = hasSubcribed
|
|
+ config.userHasSubscribed = true
|
|
s.closeJsonResponse(res,endData)
|
|
})
|
|
},res,req)
|
|
--
|
|
2.35.1
|
|
|