diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-03 16:58:16 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-03 16:58:16 +0100 |
commit | 559d5388f0cd502da3eae25ed30cc5e005e26f76 (patch) | |
tree | 9b95b642df6e027571f2e9ad0216963a2f1ec3fc /archaeological_context_records/models.py | |
parent | 70950a81ebbb1dbebc259b8226fe19d358944db6 (diff) | |
download | Ishtar-559d5388f0cd502da3eae25ed30cc5e005e26f76.tar.bz2 Ishtar-559d5388f0cd502da3eae25ed30cc5e005e26f76.zip |
Permissions: fix permission for context record, operation, sites associated to a find basket
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 2e9af17c1..d7d7a618d 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -538,6 +538,9 @@ class ContextRecord(BulkUpdatedItem, BaseHistorizedItem, def get_query_owns(cls, ishtaruser): q = cls._construct_query_own( 'operation__', Operation._get_query_owns_dicts(ishtaruser) + ) | cls._construct_query_own( + 'base_finds__find__basket__', + [{"shared_with": ishtaruser, "shared_write_with": ishtaruser}] ) | cls._construct_query_own('', [ {'history_creator': ishtaruser.user_ptr}, {'operation__end_date__isnull': True} |