security: Stop multiport_bits_separate graphs for showing regardless of auth #6101 (#6109)

* security: Stop multiport_bits_separate graphs for showing regardless of auth #6101

* updated
This commit is contained in:
Neil Lathwood
2017-03-08 23:07:59 -06:00
committed by Tony Murray
parent 9c780a46cb
commit 296ddcabad
+6 -5
View File
@@ -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;
}
}
}