summaryrefslogtreecommitdiffstats
path: root/usr/local/www/fbegin.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-16 20:53:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-16 20:53:23 +0000
commitc8823c18c336b6f6b89159debbdc4098798bd4bb (patch)
tree73cd2b8f8562f88831b76edd83a6d2c6a2caf699 /usr/local/www/fbegin.inc
parent60c74655ebdf94bbd9b486a6974ff9b77902c8e8 (diff)
downloadpfsense-c8823c18c336b6f6b89159debbdc4098798bd4bb.zip
pfsense-c8823c18c336b6f6b89159debbdc4098798bd4bb.tar.gz
Ensure $allowed is set correctly.
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-xusr/local/www/fbegin.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc
index 5b04c21..64f0dc5 100755
--- a/usr/local/www/fbegin.inc
+++ b/usr/local/www/fbegin.inc
@@ -333,7 +333,9 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') {
$allowed = &$config['system']['group'][$groupindex[$config['system']['user'][$userindex[$auth_user]]['groupname']]]['pages'];
function output_menu_item($url, $name) {
- global $auth_user, $groupindex, $userindex, $allowed, $HTTP_SERVER_VARS;
+ global $auth_user, $groupindex, $userindex, $allowed, $HTTP_SERVER_VARS, $allowed;
+ if(!$allowed)
+ $allowed = $_SESSION['privs'];
if (!isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER']))
if (!in_array(basename($url), $allowed))
return;
OpenPOWER on IntegriCloud