mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-31 04:46:26 -06:00
[Bugfix] Fix permissions when viewing VLANs, but Prefix permission is disabled
This commit is contained in:
parent
3feba2997f
commit
a16ad9969b
@ -72,11 +72,15 @@ VLAN_LINK = """
|
||||
"""
|
||||
|
||||
VLAN_PREFIXES = """
|
||||
{% if perms.ipam.view_prefix %}
|
||||
{% for prefix in record.prefixes.all %}
|
||||
<a href="{% url 'ipam:prefix' pk=prefix.pk %}">{{ prefix }}</a>{% if not forloop.last %}<br />{% endif %}
|
||||
{% empty %}
|
||||
—
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
—
|
||||
{% endif }
|
||||
"""
|
||||
|
||||
VLAN_ROLE_LINK = """
|
||||
|
Loading…
Reference in New Issue
Block a user