Commit 6660281f534cabcef5a448f438da0c2f083b1282

Authored by nbm
1 parent 7a163d88

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 144 $this->loginRequired();
145 145 }
146 146  
147   - if ($bLogonRequired !== false) {
  147 + if ($this->bLogonRequired !== false) {
148 148 if (empty($_SESSION['userID'])) {
149 149 $this->loginRequired();
150 150 exit(0);
... ... @@ -156,7 +156,7 @@ class KTStandardDispatcher extends KTDispatcher {
156 156 }
157 157 }
158 158  
159   - if ($bAdminRequired !== false) {
  159 + if ($this->bAdminRequired !== false) {
160 160 if (!Permission::userIsSystemAdministrator($_SESSION['userID'])) {
161 161 $this->permissionDenied();
162 162 exit(0);
... ...