mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 20:01:54 +02:00
See #170: limit the amount of channels allowed per user
This commit is contained in:
parent
11a42e362d
commit
a3505d2099
5 changed files with 52 additions and 2 deletions
|
@ -14,3 +14,12 @@ class ChannelsEnabled(types.BooleanPreference):
|
|||
"If disabled, the channels feature will be completely switched off, "
|
||||
"and users won't be able to create channels or subscribe to them."
|
||||
)
|
||||
|
||||
|
||||
@global_preferences_registry.register
|
||||
class MaxChannels(types.IntegerPreference):
|
||||
show_in_api = True
|
||||
section = audio
|
||||
default = 20
|
||||
name = "max_channels"
|
||||
verbose_name = "Max channels allowed per user"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue