forked from CGM_Public/pretix_original
Restricted Plugins: Do not require a restricted plugin to be visible.
This commit is contained in:
@@ -101,7 +101,6 @@ def restricted_plugin_kwargs():
|
||||
(p.module, p.name) for p in get_all_plugins(None)
|
||||
if (
|
||||
not p.name.startswith('.') and
|
||||
getattr(p, 'visible', True) and
|
||||
getattr(p, 'restricted', False) and
|
||||
not hasattr(p, 'is_available') # this means you should not really use restricted and is_available
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user