Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Community Edition, Professional Edition
Description
File
html/includes/graphs/multi-port/auth.inc.php
When $config['allow_unauth_graphs'] is not set, $auth should be set depending if the user is logged in and allowed to view the ports data.
In the mentioned auth.inc file $auth is always set to TRUE ( I guess to make things work.) and then it loops over all the ports to check if the user is allowed to see the info.
Attached patch file will set an additional status-variable while looping over the ports. At the end $auth is updated with the results of the loop.
You might want to check if $auth is (already) set to TRUE before looping over the ports, as $auth would not change if it is already set to TRUE.