Parcourir la source

Fixes #1458: Corrected permission name on prefix/VLAN roles list

Jeremy Stretch il y a 7 ans
Parent
commit
1308839a41
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      netbox/templates/ipam/role_list.html

+ 1 - 1
netbox/templates/ipam/role_list.html

@@ -3,7 +3,7 @@
 
 
 {% block content %}
 {% block content %}
 <div class="pull-right">
 <div class="pull-right">
-    {% if perms.dcim.add_devicerole %}
+    {% if perms.ipam.add_role %}
         <a href="{% url 'ipam:role_add' %}" class="btn btn-primary">
         <a href="{% url 'ipam:role_add' %}" class="btn btn-primary">
             <span class="fa fa-plus" aria-hidden="true"></span>
             <span class="fa fa-plus" aria-hidden="true"></span>
             Add a role
             Add a role