From 46ba34ec0b2d8e30f7aa9833f02153ebefa558ab Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 28 Mar 2018 04:14:16 +0200 Subject: [PATCH] Fix can_edit/can_create --- machines/templates/machines/aff_extension.html | 2 +- machines/templates/machines/aff_vlan.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/templates/machines/aff_extension.html b/machines/templates/machines/aff_extension.html index 1feec748..44061b1b 100644 --- a/machines/templates/machines/aff_extension.html +++ b/machines/templates/machines/aff_extension.html @@ -48,7 +48,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {{ extension.origin_v6 }} {% endif %} - {% can_create Extension %} + {% can_edit extension %} {% include 'buttons/edit.html' with href='machines:edit-extension' id=extension.id %} {% acl_end %} {% include 'buttons/history.html' with href='machines:history' name='extension' id=extension.id %} diff --git a/machines/templates/machines/aff_vlan.html b/machines/templates/machines/aff_vlan.html index 2e3d99b4..de49c7a6 100644 --- a/machines/templates/machines/aff_vlan.html +++ b/machines/templates/machines/aff_vlan.html @@ -42,7 +42,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {{ vlan.comment }} {% for range in vlan.iptype_set.all %}{{ range }}, {% endfor%} - {% can_create Vlan %} + {% can_edit vlan %} {% include 'buttons/edit.html' with href='machines:edit-vlan' id=vlan.id %} {% acl_end %} {% include 'buttons/history.html' with href='machines:history' name='vlan' id=vlan.id %}