mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Use correct permission name 'show_private' instead of 'show_secure' in templates
This fixes issue #307
This commit is contained in:
parent
3614c82632
commit
f57a0ecba2
2 changed files with 3 additions and 3 deletions
|
@ -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') }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue