summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-18 17:29:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-18 17:29:36 +0000
commitf10e8e4828d892357d1ff6df3198bb9840d65e5b (patch)
tree26631c35c58556630a9798e95d834cdf4f5f56d4 /etc/inc
parent9c98515dddc41c7c481b0ccd03315243291e0295 (diff)
downloadpfsense-f10e8e4828d892357d1ff6df3198bb9840d65e5b.zip
pfsense-f10e8e4828d892357d1ff6df3198bb9840d65e5b.tar.gz
Ensure that $allowed is set.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index d162854..3494dad 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -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.
OpenPOWER on IntegriCloud