diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-16 20:53:23 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-16 20:53:23 +0000 |
commit | c8823c18c336b6f6b89159debbdc4098798bd4bb (patch) | |
tree | 73cd2b8f8562f88831b76edd83a6d2c6a2caf699 | |
parent | 60c74655ebdf94bbd9b486a6974ff9b77902c8e8 (diff) | |
download | pfsense-c8823c18c336b6f6b89159debbdc4098798bd4bb.zip pfsense-c8823c18c336b6f6b89159debbdc4098798bd4bb.tar.gz |
Ensure $allowed is set correctly.
-rwxr-xr-x | usr/local/www/fbegin.inc | 4 |
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; |