#1060 portctl_topology setting for web access to manual topo for port_control users

This commit is contained in:
Oliver Gorwits
2023-07-12 21:53:38 +01:00
parent 6f8af7ed9d
commit 0eb26159f9
2 changed files with 2 additions and 1 deletions

View File

@@ -251,6 +251,7 @@ portctl_nowaps: false
portctl_nophones: false
portctl_vlans: false
portctl_uplinks: false
portctl_topology: false
portctl_by_role: {}
system_port_control_reasons:
address: 'Address Allocation Abuse'

View File

@@ -425,7 +425,7 @@
[% END %]
[% END %]
[% END %]
[% IF user_can_port_control AND params.c_admin AND row.portctl %]
[% IF settings.portctl_topology AND user_can_port_control AND params.c_admin AND row.portctl %]
<a class="nd_log-icon"
href="[% uri_for('/admin/topology') | none %]?dev1=[% device.ip | uri %]&port1=[% row.port | uri %]">
<i class="icon-link text-warning"