Refactor access control settings
Also fix some issues that were left over from/introduced by earlier commits.
This commit is contained in:
1 parent
21c8bd54f5
commit
27536388f2
13 files changed
+347
-182
No files matched your search
@@ -106,12 +106,13 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
|
||||
return [
|
||||
dict(key="MANAGE",
|
||||
name="Manage plugins",
|
||||
description=gettext("Allows to manage installed plugins"),
|
||||
description=gettext("Allows to enable, disable and uninstall installed plugins"),
|
||||
roles=["manage"]),
|
||||
dict(key="INSTALL",
|
||||
name="Install new plugins",
|
||||
description=gettext("Allows to install new plugins. Includes the \"Manage plugins\" permission"),
|
||||
roles=["install", "manage"])
|
||||
roles=["install", "manage"],
|
||||
dangerous=True)
|
||||
]
|
||||
|
||||
##~~ StartupPlugin
|
||||
|
||||
Reference in new issue
Block a user