diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-06-07 16:24:19 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-06-07 16:24:19 -0700 |
commit | 8fd7e474d45701e7d92a050278eecacb93cd7d9e (patch) | |
tree | 9733390443a21abfa03cd9963c3b0fd817fe52f6 /htdocs/moderate/users | |
parent | 28a7c04d92dbe33958c51663bf7c1d8db4e4d49f (diff) |
Fixed a bug in the admin only pages
Diffstat (limited to 'htdocs/moderate/users')
-rw-r--r-- | htdocs/moderate/users/delete.php | 2 | ||||
-rw-r--r-- | htdocs/moderate/users/editor.php | 2 | ||||
-rw-r--r-- | htdocs/moderate/users/index.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/htdocs/moderate/users/delete.php b/htdocs/moderate/users/delete.php index 875c0c7..76b8866 100644 --- a/htdocs/moderate/users/delete.php +++ b/htdocs/moderate/users/delete.php @@ -11,7 +11,7 @@ require_once('../../src/base.inc.php'); // Verify User is admin -if (!$_SESSION['currentUser']->isAdmin()) { +if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) { header('Location: ' . buildUrl('moderate/')); exit; } diff --git a/htdocs/moderate/users/editor.php b/htdocs/moderate/users/editor.php index 54befc7..fe715f7 100644 --- a/htdocs/moderate/users/editor.php +++ b/htdocs/moderate/users/editor.php @@ -11,7 +11,7 @@ require_once('../../src/base.inc.php'); // Verify User is admin -if (!$_SESSION['currentUser']->isAdmin()) { +if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) { header('Location: ' . buildUrl('moderate/')); exit; } diff --git a/htdocs/moderate/users/index.php b/htdocs/moderate/users/index.php index c4aee54..3e85d5e 100644 --- a/htdocs/moderate/users/index.php +++ b/htdocs/moderate/users/index.php @@ -11,7 +11,7 @@ require_once('../../src/base.inc.php'); // Verify User is admin -if (!$_SESSION['currentUser']->isAdmin()) { +if (!isset($_SESSION['currentUser']) or !$_SESSION['currentUser']->isAdmin()) { header('Location: ' . buildUrl('moderate/')); exit; } |