default stop/start feature to enabled:false

This commit is contained in:
Steve-Mcl
2022-06-27 18:06:53 +01:00
parent 2f1f587c50
commit 51baed4932
6 changed files with 16 additions and 16 deletions

View File

@@ -310,7 +310,7 @@ var api = module.exports = {
}
}
if(runtime.settings.runtimeState ? runtime.settings.runtimeState.enabled === false : false) {
if(!runtime.settings.runtimeState || runtime.settings.runtimeState.enabled !== true) {
throw (makeError("Method Not Allowed", "not_allowed", 405))
}
switch (opts.requestedState) {