mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-18 07:24:28 +01:00
* Fixes #21579: Display 'add script' button only if user has sufficient permission * Check for core.add_managedfile permission too
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user