From 0b3ef876eddaa4b78ac1445cff253ca36a83170a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 10 May 2014 17:02:15 +0200 Subject: Fix quick shortcut associated items for operations and files (refs #1752) --- archaeological_operations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 5f186e19c..79b2e1acc 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -339,7 +339,7 @@ class Operation(BaseHistorizedItem, OwnPerms, ValueGetter): @classmethod def get_query_owns(cls, user): return Q(in_charge=user.person)|Q(scientist=user.person)|\ - Q(history_modifier=user) & Q(end_date__isnull=True) + Q(history_creator=user) & Q(end_date__isnull=True) def is_active(self): return not bool(self.end_date) -- cgit v1.2.3