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:
@@ -56,7 +56,7 @@ module.exports = {
|
||||
|
||||
// Flows/state
|
||||
adminApp.get("/flows/state", needsPermission("flows.read"), flows.getState, apiUtil.errorHandler);
|
||||
if (!settings.runtimeState || settings.runtimeState.enabled !== false) {
|
||||
if (settings.runtimeState && settings.runtimeState.enabled === true) {
|
||||
adminApp.post("/flows/state", needsPermission("flows.write"), flows.postState, apiUtil.errorHandler);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user