Commit ba03ef8efb19ebfbce8da99cb548301fac718913

Authored by Neil Blakey-Milner
1 parent 77b34e1b

Make sure we're getting our login/admin-requirements from the correct

location - the object, not local scope.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4232 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 2 deletions
lib/dispatcher.inc.php
@@ -144,7 +144,7 @@ class KTStandardDispatcher extends KTDispatcher { @@ -144,7 +144,7 @@ class KTStandardDispatcher extends KTDispatcher {
144 $this->loginRequired(); 144 $this->loginRequired();
145 } 145 }
146 146
147 - if ($bLogonRequired !== false) { 147 + if ($this->bLogonRequired !== false) {
148 if (empty($_SESSION['userID'])) { 148 if (empty($_SESSION['userID'])) {
149 $this->loginRequired(); 149 $this->loginRequired();
150 exit(0); 150 exit(0);
@@ -156,7 +156,7 @@ class KTStandardDispatcher extends KTDispatcher { @@ -156,7 +156,7 @@ class KTStandardDispatcher extends KTDispatcher {
156 } 156 }
157 } 157 }
158 158
159 - if ($bAdminRequired !== false) { 159 + if ($this->bAdminRequired !== false) {
160 if (!Permission::userIsSystemAdministrator($_SESSION['userID'])) { 160 if (!Permission::userIsSystemAdministrator($_SESSION['userID'])) {
161 $this->permissionDenied(); 161 $this->permissionDenied();
162 exit(0); 162 exit(0);