Verified Commit 6f5716a1 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added preference to control plugin usage

parent 812709ad
from dynamic_preferences import types
from dynamic_preferences.registries import global_preferences_registry
plugins = types.Section("plugins")
@global_preferences_registry.register
class PluginsEnabled(types.BooleanPreference):
section = plugins
show_in_api = True
name = "enabled"
default = True
verbose_name = "Enable Funkwhale plugins"
help_text = "If disabled, all installed and enabled plugins will be ignored."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment