See #170: limit the amount of channels allowed per user

This commit is contained in:
Eliot Berriot 2020-02-14 11:50:30 +01:00
parent 11a42e362d
commit a3505d2099
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
5 changed files with 52 additions and 2 deletions

View file

@ -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"