mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 08:59:17 +02:00
See #890: web UI and email notifications on new reports
This commit is contained in:
parent
368b70d3a9
commit
c9a9615be8
15 changed files with 292 additions and 4 deletions
|
@ -232,8 +232,13 @@ class User(AbstractUser):
|
|||
|
||||
def get_channels_groups(self):
|
||||
groups = ["imports", "inbox"]
|
||||
groups = ["user.{}.{}".format(self.pk, g) for g in groups]
|
||||
|
||||
return ["user.{}.{}".format(self.pk, g) for g in groups]
|
||||
for permission, value in self.all_permissions.items():
|
||||
if value:
|
||||
groups.append("admin.{}".format(permission))
|
||||
|
||||
return groups
|
||||
|
||||
def full_username(self):
|
||||
return "{}@{}".format(self.username, settings.FEDERATION_HOSTNAME)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue