mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
default stop/start feature to enabled:false
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user