From d6f4e3b68712a56ccd0294c6e704c252bddfbe48 Mon Sep 17 00:00:00 2001 From: lunars97 Date: Tue, 17 Dec 2024 13:58:47 +0100 Subject: [PATCH] Hide checkboxes in archived locations for observer role --- .../cms/templates/pois/poi_list_archived.html | 4 +++- .../cms/templates/pois/poi_list_archived_row.html | 14 ++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/integreat_cms/cms/templates/pois/poi_list_archived.html b/integreat_cms/cms/templates/pois/poi_list_archived.html index 963d3262d4..a9fa3f17bf 100644 --- a/integreat_cms/cms/templates/pois/poi_list_archived.html +++ b/integreat_cms/cms/templates/pois/poi_list_archived.html @@ -34,7 +34,9 @@

- + {% if perms.cms.change_poi %} + + {% endif %} {% translate "Title in" %} {{ language.translated_name }} diff --git a/integreat_cms/cms/templates/pois/poi_list_archived_row.html b/integreat_cms/cms/templates/pois/poi_list_archived_row.html index 8ef0770fc4..48815afb1d 100644 --- a/integreat_cms/cms/templates/pois/poi_list_archived_row.html +++ b/integreat_cms/cms/templates/pois/poi_list_archived_row.html @@ -2,12 +2,14 @@ {% load rules %} {% load content_filters %} - - + + {% if perms.cms.change_poi %} + + {% endif %}