Skip to content

Commit 7e83896

Browse files
committed
Only show load button when user has the required permissions
1 parent 1756495 commit 7e83896

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

netbox_script_manager/templates/netbox_script_manager/script_list.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
{% load static %}
44

55
{% block extra_controls %}
6+
{% if perms.netbox_script_manager.add_scriptinstance %}
67
<a href="{% url 'plugins:netbox_script_manager:scriptinstance_load' %}{% querystring request %}" class="btn btn-sm btn-primary">
78
<i class="mdi mdi-refresh"></i> Load Scripts
89
</a>
10+
{% endif %}
911
{% endblock %}

0 commit comments

Comments
 (0)