Fixes #21579: Display 'add script' button only if user has sufficient permission (#21628)

* Fixes #21579: Display 'add script' button only if user has sufficient permission

* Check for core.add_managedfile permission too
This commit is contained in:
Jeremy Stretch 2026-03-13 17:08:03 -04:00 committed by GitHub
parent da79cc775d
commit 9b57512b12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@
{% endblock tabs %}
{% block controls %}
{% add_button model %}
{% if perms.core.add_managedfile and perms.extras.add_scriptmodule %}
{% add_button model %}
{% endif %}
{% endblock controls %}
{% block content %}