mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
change cache on picture download
This commit is contained in:
@ -982,7 +982,7 @@ class SithFile(models.Model):
|
||||
return True
|
||||
if self.is_in_sas and user.is_in_group(pk=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):
|
||||
if hasattr(self, "profile_of"):
|
||||
|
Reference in New Issue
Block a user