mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 15:39:16 +02:00
Resolve "Per-user libraries" (use !368 instead)
This commit is contained in:
parent
b0ca181016
commit
2ea21994ee
144 changed files with 6749 additions and 5347 deletions
|
@ -28,3 +28,13 @@ class DefaultPermissions(common_preferences.StringListPreference):
|
|||
help_text = "A list of default preferences to give to all registered users."
|
||||
choices = [(k, c["label"]) for k, c in models.PERMISSIONS_CONFIGURATION.items()]
|
||||
field_kwargs = {"choices": choices, "required": False}
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class UploadQuota(types.IntPreference):
|
||||
show_in_api = True
|
||||
section = users
|
||||
name = "upload_quota"
|
||||
default = 1000
|
||||
verbose_name = "Upload quota"
|
||||
help_text = "Default upload quota applied to each users, in MB. This can be overrided on a per-user basis."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue