From a16ad9969bdf1c8a2a231eac481364eb387ba55a Mon Sep 17 00:00:00 2001 From: Navdeep Sidhu Date: Mon, 16 Aug 2021 13:31:40 +1200 Subject: [PATCH] [Bugfix] Fix permissions when viewing VLANs, but Prefix permission is disabled --- netbox/ipam/tables.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netbox/ipam/tables.py b/netbox/ipam/tables.py index 728969738..ea23869dc 100644 --- a/netbox/ipam/tables.py +++ b/netbox/ipam/tables.py @@ -72,11 +72,15 @@ VLAN_LINK = """ """ VLAN_PREFIXES = """ +{% if perms.ipam.view_prefix %} {% for prefix in record.prefixes.all %} {{ prefix }}{% if not forloop.last %}
{% endif %} {% empty %} — {% endfor %} +{% else %} + — +{% endif } """ VLAN_ROLE_LINK = """