summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-02 22:39:59 -0500
committersullrich <sullrich@pfsense.org>2009-12-02 22:41:06 -0500
commit953ab2d47bc2da80d6aae5992ebf74022322c7b1 (patch)
tree71af608677900ac4b209da2223d74cd9287d9252 /etc
parent7281bb732b13e1a8296b5878dc8c5921c693ee67 (diff)
downloadpfsense-953ab2d47bc2da80d6aae5992ebf74022322c7b1.zip
pfsense-953ab2d47bc2da80d6aae5992ebf74022322c7b1.tar.gz
fix error
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/priv.inc5
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;
OpenPOWER on IntegriCloud