mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
Small right fix
This commit is contained in:
parent
d7a065c4e2
commit
97f7214f01
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user