mirror of https://github.com/node-red/node-red.git
Fix the property "users" access error in runtime.start test caces (#1511)
parent
1dd4323613
commit
3ca0e9c420
|
@ -55,7 +55,12 @@ var persistentSettings = {
|
|||
storage = _storage;
|
||||
return storage.getSettings().then(function(_settings) {
|
||||
globalSettings = _settings;
|
||||
userSettings = globalSettings.users || {};
|
||||
if (globalSettings) {
|
||||
userSettings = globalSettings.users || {};
|
||||
}
|
||||
else {
|
||||
userSettings = {};
|
||||
}
|
||||
});
|
||||
},
|
||||
get: function(prop) {
|
||||
|
|
Loading…
Reference in New Issue