mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +00:00
edit placement
This commit is contained in:
parent
29779b3f1b
commit
2e9de93a86
1 changed files with 1 additions and 1 deletions
|
@ -284,8 +284,8 @@ class User(FieldPermissionModelMixin, AbstractBaseUser, PermissionsMixin):
|
|||
|
||||
@property
|
||||
def is_admin(self):
|
||||
admin,_ = Group.objects.get_or_create(name="admin")
|
||||
""" Renvoie si l'user est admin"""
|
||||
admin,_ = Group.objects.get_or_create(name="admin")
|
||||
return self.is_superuser or admin in self.groups.all()
|
||||
|
||||
def get_full_name(self):
|
||||
|
|
Loading…
Reference in a new issue