From f10e8e4828d892357d1ff6df3198bb9840d65e5b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 18 Feb 2008 17:29:36 +0000 Subject: [PATCH] Ensure that $allowed is set. --- etc/inc/pfsense-utils.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index d162854830..3494dadadd 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.