* Fixes #21579: Display 'add script' button only if user has sufficient permission * Check for core.add_managedfile permission too
@@ -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 %}