mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-01 13:26:25 -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 = """
|
VLAN_PREFIXES = """
|
||||||
|
{% if perms.ipam.view_prefix %}
|
||||||
{% for prefix in record.prefixes.all %}
|
{% for prefix in record.prefixes.all %}
|
||||||
<a href="{% url 'ipam:prefix' pk=prefix.pk %}">{{ prefix }}</a>{% if not forloop.last %}<br />{% endif %}
|
<a href="{% url 'ipam:prefix' pk=prefix.pk %}">{{ prefix }}</a>{% if not forloop.last %}<br />{% endif %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
—
|
—
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
—
|
||||||
|
{% endif }
|
||||||
"""
|
"""
|
||||||
|
|
||||||
VLAN_ROLE_LINK = """
|
VLAN_ROLE_LINK = """
|
||||||
|
Loading…
Reference in New Issue
Block a user