Parcourir la source

Fixes #1013: Show edit/delete reservation buttons on rack view

Jeremy Stretch il y a 8 ans
Parent
commit
6813787fc7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      netbox/templates/dcim/rack.html

+ 2 - 2
netbox/templates/dcim/rack.html

@@ -216,12 +216,12 @@
                                 <small>{{ resv.user }} &middot; {{ resv.created }}</small>
                             </td>
                             <td class="text-right">
-                                {% if perms.change_rackreservation %}
+                                {% if perms.dcim.change_rackreservation %}
                                     <a href="{% url 'dcim:rackreservation_edit' pk=resv.pk %}" class="btn btn-warning btn-xs" title="Edit reservation">
                                         <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
                                     </a>
                                 {% endif %}
-                                {% if perms.delete_rackreservation %}
+                                {% if perms.dcim.delete_rackreservation %}
                                     <a href="{% url 'dcim:rackreservation_delete' pk=resv.pk %}" class="btn btn-danger btn-xs" title="Delete reservation">
                                         <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
                                     </a>