From 97f7214f011cea47a05b04f49da1dc7a2cabcef8 Mon Sep 17 00:00:00 2001 From: Skia Date: Wed, 14 Dec 2016 09:10:41 +0100 Subject: [PATCH] Small right fix --- core/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/models.py b/core/models.py index bcd72a83..44916ec8 100644 --- a/core/models.py +++ b/core/models.py @@ -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):