mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Refactor page handling
This commit is contained in:
1 parent
8da149c979
commit
356a2d2683
6 files changed
+66
-36
No files matched your search
+1
-1
@@ -213,7 +213,7 @@ class User(AbstractBaseUser, PermissionsMixin):
|
||||
if hasattr(obj, "is_owned_by") and obj.is_owned_by(self):
|
||||
return True
|
||||
if hasattr(obj, "owner_group") and self.is_in_group(obj.owner_group.name):
|
||||
return False
|
||||
return True
|
||||
if self.is_superuser or self.is_in_group(settings.SITH_GROUPS['root']['name']):
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user