diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index aedb6b68c..1e490fd46 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -382,6 +382,7 @@ function getCollapsedNavBarHTML($running, $user, $bandwidth_options, $view, $ski // Returns the html representing the current unix style system load function getSysLoadHTML() { $result = ''; + if ( !canView('System') ) return $result; $result .= ''.PHP_EOL; @@ -650,6 +655,7 @@ function getGroupsHTML($view) { // Returns the html representing the Filter menu item function getFilterHTML($view) { $result = ''; + if ( !canView('Events') ) return $result; $class = $view == 'filter' ? ' selected' : ''; $result .= ''.PHP_EOL;