Explorar el Código

Fixes #3342: Fix cluster delete button permissions reference

Jeremy Stretch hace 6 años
padre
commit
154b9e1faf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/templates/virtualization/cluster.html

+ 1 - 1
netbox/templates/virtualization/cluster.html

@@ -33,7 +33,7 @@
                 Edit this cluster
             </a>
         {% endif %}
-        {% if perms.dcim.delete_cluster %}
+        {% if perms.virtualization.delete_cluster %}
             <a href="{% url 'virtualization:cluster_delete' pk=cluster.pk %}" class="btn btn-danger">
                 <span class="fa fa-trash" aria-hidden="true"></span>
                 Delete this cluster