diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-02 22:39:59 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-02 22:41:06 -0500 |
commit | 953ab2d47bc2da80d6aae5992ebf74022322c7b1 (patch) | |
tree | 71af608677900ac4b209da2223d74cd9287d9252 /etc/inc/priv.inc | |
parent | 7281bb732b13e1a8296b5878dc8c5921c693ee67 (diff) | |
download | pfsense-953ab2d47bc2da80d6aae5992ebf74022322c7b1.zip pfsense-953ab2d47bc2da80d6aae5992ebf74022322c7b1.tar.gz |
fix error
Diffstat (limited to 'etc/inc/priv.inc')
-rw-r--r-- | etc/inc/priv.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/priv.inc b/etc/inc/priv.inc index b27c0f6..9913c4e 100644 --- a/etc/inc/priv.inc +++ b/etc/inc/priv.inc @@ -175,9 +175,12 @@ function get_user_privdesc(& $user) { return $privs; } -function isAllowedPage($page, $username = $_SESSION['Username']) { +function isAllowedPage($page, $username = "") { global $_SESSION; + if($username == "") + $username = $_SESSION['Username']; + if (!isset($username)) return false; |