Procházet zdrojové kódy

Fixed permissions for inclusion of interface bulk edit form

Jeremy Stretch před 9 roky
rodič
revize
5520144ff4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      netbox/templates/dcim/device.html

+ 1 - 1
netbox/templates/dcim/device.html

@@ -393,7 +393,7 @@
             {% endif %}
         {% endif %}
         {% if interfaces or device.device_type.is_network_device %}
-            {% if perms.dcim.delete_interface %}
+            {% if perms.dcim.change_interface or perms.dcim.delete_interface %}
                 <form method="post">
                 {% csrf_token %}
                 <input type="hidden" name="device" value="{{ device.pk }}" />