forked from CGM_Public/pretix_original
Plugins: Fix check if a restricted plugin is really restricted
This commit is contained in:
@@ -387,7 +387,7 @@ class EventPlugins(EventSettingsViewMixin, EventPermissionRequiredMixin, Templat
|
|||||||
if key.startswith("plugin:"):
|
if key.startswith("plugin:"):
|
||||||
module = key.split(":")[1]
|
module = key.split(":")[1]
|
||||||
if value == "enable" and module in plugins_available:
|
if value == "enable" and module in plugins_available:
|
||||||
if getattr(plugins_available[module], 'restricted', False):
|
if getattr(plugins_available[module].app, 'restricted', False):
|
||||||
if module not in request.event.settings.allowed_restricted_plugins:
|
if module not in request.event.settings.allowed_restricted_plugins:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user