Explorar el Código

Fixes #21841: Fix display of the "edit" button for script modules (#21851)

Jeremy Stretch hace 23 horas
padre
commit
1bbecef77d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/templates/extras/inc/script_list_content.html

+ 1 - 1
netbox/templates/extras/inc/script_list_content.html

@@ -11,7 +11,7 @@
       <h2 class="card-header" id="module{{ module.pk }}">
         <i class="mdi mdi-file-document-outline"></i> {{ module }}
         <div class="card-actions">
-          {% if perms.extras.edit_scriptmodule %}
+          {% if perms.extras.change_scriptmodule %}
             <a href="{% url 'extras:scriptmodule_edit' pk=module.pk %}" class="btn btn-ghost-warning btn-sm">
               <i class="mdi mdi-pencil" aria-hidden="true"></i> {% trans "Edit" %}
             </a>