From 6660281f534cabcef5a448f438da0c2f083b1282 Mon Sep 17 00:00:00 2001 From: nbm Date: Mon, 28 Nov 2005 20:12:57 +0000 Subject: [PATCH] Make sure we're getting our login/admin-requirements from the correct location - the object, not local scope. --- lib/dispatcher.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dispatcher.inc.php b/lib/dispatcher.inc.php index 5ad2644..b08873d 100644 --- a/lib/dispatcher.inc.php +++ b/lib/dispatcher.inc.php @@ -144,7 +144,7 @@ class KTStandardDispatcher extends KTDispatcher { $this->loginRequired(); } - if ($bLogonRequired !== false) { + if ($this->bLogonRequired !== false) { if (empty($_SESSION['userID'])) { $this->loginRequired(); exit(0); @@ -156,7 +156,7 @@ class KTStandardDispatcher extends KTDispatcher { } } - if ($bAdminRequired !== false) { + if ($this->bAdminRequired !== false) { if (!Permission::userIsSystemAdministrator($_SESSION['userID'])) { $this->permissionDenied(); exit(0); -- libgit2 0.21.4