From b5bccc35dd9a6e9abda90f7349c8da65412f1148 Mon Sep 17 00:00:00 2001 From: Julien Constant Date: Thu, 13 Apr 2023 02:31:02 +0200 Subject: [PATCH] Fix root dir of SAS being unnaccessible for sas admins :warning: need to edit the SAS directory & save it (no changes required in sas directory properties) --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 1b1cb566..5bc28a1d 100644 --- a/core/models.py +++ b/core/models.py @@ -1025,7 +1025,7 @@ class SithFile(models.Model): def save(self, *args, **kwargs): sas = SithFile.objects.filter(id=settings.SITH_SAS_ROOT_DIR_ID).first() - self.is_in_sas = sas in self.get_parent_list() + self.is_in_sas = sas in self.get_parent_list() or self == sas copy_rights = False if self.id is None: copy_rights = True