From 33dd12e15379b98d29fd1edeaf416d28300fab81 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 30 Nov 2018 20:09:52 +0100 Subject: Find permission: find in a shared basket are own --- archaeological_finds/models_finds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index b1dfdba29..b8f8d61a7 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1420,6 +1420,9 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, ) | cls._construct_query_own( 'base_finds__context_record__operation__', Operation._get_query_owns_dicts(ishtaruser) + ) | cls._construct_query_own( + 'basket__', + [{"shared_with": ishtaruser, "shared_write_with": ishtaruser}] ) | cls._construct_query_own('', [ {'history_creator': ishtaruser.user_ptr}, {'base_finds__context_record__operation__end_date__isnull': True} -- cgit v1.2.3