mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* security: Stop multiport_bits_separate graphs for showing regardless of auth #6101 * updated
This commit is contained in:
committed by
Tony Murray
parent
9c780a46cb
commit
296ddcabad
@@ -1,10 +1,11 @@
|
||||
<?php
|
||||
|
||||
$auth = true;
|
||||
|
||||
foreach (explode(',', $vars['id']) as $ifid) {
|
||||
if (!$auth && !port_permitted($ifid)) {
|
||||
$auth = false;
|
||||
if (!$auth) {
|
||||
foreach (explode(',', $vars['id']) as $ifid) {
|
||||
$auth = port_permitted($ifid);
|
||||
if (!$auth) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user