mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 05:49:16 +02:00
See #212: user detail profile
This commit is contained in:
parent
8e6b6f454a
commit
8636b456a8
6 changed files with 231 additions and 4 deletions
|
@ -94,6 +94,10 @@ class User(AbstractUser):
|
|||
perms[p] = v
|
||||
return perms
|
||||
|
||||
@property
|
||||
def all_permissions(self):
|
||||
return self.get_permissions()
|
||||
|
||||
def has_permissions(self, *perms, **kwargs):
|
||||
operator = kwargs.pop("operator", "and")
|
||||
if operator not in ["and", "or"]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue