🔒️ Fix a wrong permission role

A wrong role assigned to PluginManager LIST permission as
introduced in 1.8.0 causes a privilege escalation,
allowing read-only and user group the same rights as
the MANAGE permission:

- enabling/disabling plugins
- uninstalling plugins
- listing installed plugins incl. their details
- retrieving plugin notices
- deleting orphaned plugin settings
This commit is contained in:
Gina Häußge committed 2022-08-24 10:52:48 +02:00
1 parent 2cbeb27140
commit ef95ef1c10
1 file changed
+1 -1
@@ -228,7 +228,7 @@ class PluginManagerPlugin(
"name": "List plugins",
"description": gettext("Allows to list installed plugins."),
"default_groups": [READONLY_GROUP, USER_GROUP, ADMIN_GROUP],
"roles": ["manage"],
"roles": ["list"],
},
{
"key": "MANAGE",