summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-30 20:09:52 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-30 20:12:09 +0100
commit2e7ee91fc196d4f7f9770420d8d3c98b8ff78175 (patch)
treec504c142d277e809af4593bc9e61611ef34e4109
parent6c1de61895bea26c3c219bbd57976396721dc073 (diff)
downloadIshtar-2e7ee91fc196d4f7f9770420d8d3c98b8ff78175.tar.bz2
Ishtar-2e7ee91fc196d4f7f9770420d8d3c98b8ff78175.zip
Find permission: find in a shared basket are own
-rw-r--r--archaeological_finds/models_finds.py3
1 files changed, 3 insertions, 0 deletions
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}