Refactor page handling

This commit is contained in:
Skia
2016-05-31 13:00:24 +02:00
parent 8da149c979
commit 356a2d2683
6 changed files with 66 additions and 36 deletions

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