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 | c89f887875cdc859e85befadca42465e6c81321e (patch) | |
tree | 9b95b642df6e027571f2e9ad0216963a2f1ec3fc /archaeological_operations/templates | |
parent | 97dc2ce4737b1bfd208752d1ff41d9f568ec96b0 (diff) | |
download | Ishtar-c89f887875cdc859e85befadca42465e6c81321e.tar.bz2 Ishtar-c89f887875cdc859e85befadca42465e6c81321e.zip |
Permissions: fix permission for context record, operation, sites associated to a find basket
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 1d699cbed..8801855cd 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -207,9 +207,11 @@ {% endif %} {% trans "Document from this operation" as operation_docs %} +{% if permission_view_own_document or permission_view_document %} {% if item.documents.count %} {% dynamic_table_document operation_docs 'documents' 'operations' item.pk '' output %} {% endif %} +{% endif %} {% if permission_view_own_contextrecord or permission_view_contextrecord %} {% if item.context_record.count %} @@ -222,21 +224,26 @@ {% dynamic_table_document cr_rels 'context_records_relations_detail' 'left_record__operation' item.pk '' output %} {% endif %} +{% if permission_view_own_document or permission_view_document %} {% if item.context_record_docs_q.count %} {% trans "Documents from associated context records" as cr_docs %} {% dynamic_table_document cr_docs 'documents' 'context_records__operation' item.pk '' output %} {% endif %} {% endif %} +{% endif %} + {% if item.finds %} {% trans "Finds" as finds %} {% dynamic_table_document finds 'finds_for_ope' 'base_finds__context_record__operation' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endif %} +{% if permission_view_own_document or permission_view_document %} {% if item.find_docs_q.count %} {% trans "Documents from associated finds" as finds_docs %} {% dynamic_table_document finds_docs 'documents' 'finds__base_finds__context_record__operation' item.pk '' output %} {% endif %} +{% endif %} {% if permission_view_own_container or permission_view_container %} {% if item.containers_q.count %} |