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

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 %}