Use correct permission name 'show_private' instead of 'show_secure' in templates

This fixes issue #307
This commit is contained in:
Jan Böhmer 2023-06-28 16:30:16 +02:00
parent 3614c82632
commit f57a0ecba2
2 changed files with 3 additions and 3 deletions

View file

@ -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 %}
<a target="_blank" data-turbo="false" rel="noopener" href="{{ entity_url(attachment, 'file_view') }}">