From f57a0ecba23aaf0b27bf971e9ffa8e60e6ab03cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 28 Jun 2023 16:30:16 +0200 Subject: [PATCH] Use correct permission name 'show_private' instead of 'show_secure' in templates This fixes issue #307 --- templates/components/attachments.macro.html.twig | 2 +- templates/parts/info/_attachments_info.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/components/attachments.macro.html.twig b/templates/components/attachments.macro.html.twig index f35de2fb..4ee0b304 100644 --- a/templates/components/attachments.macro.html.twig +++ b/templates/components/attachments.macro.html.twig @@ -20,7 +20,7 @@ {% endmacro %} {% macro attachment_icon(attachment, attachment_helper, class = "fa-fw fas fa-3x hoverpic", link = true) %} - {% set disabled = attachment.secure and not is_granted("show_secure", attachment) %} + {% set disabled = attachment.secure and not is_granted("show_private", attachment) %} {% if not attachment_helper or attachment_helper.fileExisting(attachment) %} {% if link and not disabled %} diff --git a/templates/parts/info/_attachments_info.html.twig b/templates/parts/info/_attachments_info.html.twig index 4b1ba28a..995c69eb 100644 --- a/templates/parts/info/_attachments_info.html.twig +++ b/templates/parts/info/_attachments_info.html.twig @@ -59,12 +59,12 @@