mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ensure that $allowed is set.
This commit is contained in:
parent
9c98515ddd
commit
f10e8e4828
@ -2246,6 +2246,8 @@ function display_top_tabs(& $tab_array) {
|
||||
global $config;
|
||||
global $g;
|
||||
$allowed = $g['privs'];
|
||||
if(!$allowed)
|
||||
$allowed = $_SESSION['privs'];
|
||||
|
||||
/* does the user have access to this tab?
|
||||
* master user has access to everything.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user