mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
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:"):
|
||||
module = key.split(":")[1]
|
||||
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:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user