mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +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
|
@property
|
||||||
def is_admin(self):
|
def is_admin(self):
|
||||||
admin,_ = Group.objects.get_or_create(name="admin")
|
|
||||||
""" Renvoie si l'user est 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()
|
return self.is_superuser or admin in self.groups.all()
|
||||||
|
|
||||||
def get_full_name(self):
|
def get_full_name(self):
|
||||||
|
|
Loading…
Reference in a new issue