mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 04:59:23 +02:00
See #152: updated admin interface
This commit is contained in:
parent
4ce6715dc7
commit
a57d975183
2 changed files with 27 additions and 4 deletions
|
@ -46,9 +46,17 @@ class User(AbstractUser):
|
|||
blank=True, null=True, max_length=255)
|
||||
|
||||
# permissions
|
||||
permission_federation = models.BooleanField(default=False)
|
||||
permission_library = models.BooleanField(default=False)
|
||||
permission_settings = models.BooleanField(default=False)
|
||||
permission_federation = models.BooleanField(
|
||||
'Manage library federation',
|
||||
help_text='Follow other instances, accept/deny library follow requests...',
|
||||
default=False)
|
||||
permission_library = models.BooleanField(
|
||||
'Manage library',
|
||||
help_text='Import new content, manage existing content',
|
||||
default=False)
|
||||
permission_settings = models.BooleanField(
|
||||
'Manage instance-level settings',
|
||||
default=False)
|
||||
|
||||
def __str__(self):
|
||||
return self.username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue