summaryrefslogtreecommitdiff
path: root/archaeological_context_records/templates
diff options
context:
space:
mode:
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
commit559d5388f0cd502da3eae25ed30cc5e005e26f76 (patch)
tree9b95b642df6e027571f2e9ad0216963a2f1ec3fc /archaeological_context_records/templates
parent70950a81ebbb1dbebc259b8226fe19d358944db6 (diff)
downloadIshtar-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/templates')
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
index 2ad74b7d2..af5da11dd 100644
--- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
+++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
@@ -171,9 +171,11 @@
{% endif %}
{% trans "Document from this context record" as cr_docs %}
+{% if permission_view_own_document or permission_view_document %}
{% if item.documents.count %}
{% dynamic_table_document cr_docs 'documents' 'context_records' item.pk '' output %}
{% endif %}
+{% endif %}
{% trans "Finds" as finds %}
{% if item.base_finds.count %}
@@ -181,8 +183,10 @@
{% endif %}
{% trans "Documents from associated finds" as finds_docs %}
+{% if permission_view_own_document or permission_view_document %}
{% if item.find_docs_q.count %}
{% dynamic_table_document finds_docs 'documents' 'finds__base_finds__context_record' item.pk '' output %}
{% endif %}
+{% endif %}
{% endblock %}