mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Small right fix
This commit is contained in:
parent
d7a065c4e2
commit
97f7214f01
@ -541,6 +541,8 @@ class SithFile(models.Model):
|
|||||||
return True
|
return True
|
||||||
if user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID):
|
if user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID):
|
||||||
return True
|
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
|
return user.id == self.owner.id
|
||||||
|
|
||||||
def can_be_viewed_by(self, user):
|
def can_be_viewed_by(self, user):
|
||||||
|
Loading…
Reference in New Issue
Block a user