Small right fix

This commit is contained in:
Skia 2016-12-14 09:10:41 +01:00
parent d7a065c4e2
commit 97f7214f01

View File

@ -541,6 +541,8 @@ class SithFile(models.Model):
return True
if user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID):
return True
if self.is_in_sas and user.is_in_group(settings.SITH_GROUP_SAS_ADMIN_ID):
return True
return user.id == self.owner.id
def can_be_viewed_by(self, user):