diff options
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 |
commit | 33dd12e15379b98d29fd1edeaf416d28300fab81 (patch) | |
tree | c504c142d277e809af4593bc9e61611ef34e4109 | |
parent | 8c6bd7f82712f849fb641e71cf95d5a05a26d198 (diff) | |
download | Ishtar-33dd12e15379b98d29fd1edeaf416d28300fab81.tar.bz2 Ishtar-33dd12e15379b98d29fd1edeaf416d28300fab81.zip |
Find permission: find in a shared basket are own
-rw-r--r-- | archaeological_finds/models_finds.py | 3 |
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} |