diff options
Diffstat (limited to 'archaeological_files/models.py')
| -rw-r--r-- | archaeological_files/models.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 95bf79dc8..293608f0c 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -187,7 +187,8 @@ class File(BaseHistorizedItem, OwnPerms, ValueGetter):      @classmethod      def get_query_owns(cls, user): -        return Q(history_modifier=user) & Q(end_date__isnull=True) +        return (Q(history_modifier=user) | Q(in_charge__ishtaruser=user)) \ +              & Q(end_date__isnull=True)      def is_active(self):          return not bool(self.end_date) | 
