Refactor page handling

This commit is contained in:
Skia committed 2016-05-31 13:00:52 +02:00
1 parent 8da149c979
commit 356a2d2683
6 files changed
+66 -36

No files matched your search

+1 -1
View File
@@ -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