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 @@