mirror of
https://github.com/node-red/node-red.git
synced 2025-12-26 23:26:46 +01:00
Better permission handling in editor
This commit is contained in:
@@ -29,6 +29,10 @@ RED.userSettings = (function() {
|
||||
if (settingsVisible) {
|
||||
return;
|
||||
}
|
||||
if (!RED.user.hasPermission("settings.write")) {
|
||||
RED.notify(RED._("user.errors.settings"),"error");
|
||||
return;
|
||||
}
|
||||
settingsVisible = true;
|
||||
var tabContainer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user