Commit dbe9d1f20f41dcd07bac6949ebe67b4de5ed4e2b
1 parent
b036e682
more debug logging
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@198 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
0 deletions
control.php
| ... | ... | @@ -48,9 +48,11 @@ if (checkSession()) { |
| 48 | 48 | // reset authorisation flag before checking access |
| 49 | 49 | $_SESSION["authorised"] = false; |
| 50 | 50 | |
| 51 | +$default->log->debug("control.php about to retrieve page from sitemap"); | |
| 51 | 52 | // check whether the users group has access to the requested page |
| 52 | 53 | $page = $default->siteMap->getPage($action, $_SESSION["groupID"]); |
| 53 | 54 | |
| 55 | +$default->log->debug("control.php retrieved page=$page"); | |
| 54 | 56 | if (!$page) { |
| 55 | 57 | // this group doesn't have permission to access the page |
| 56 | 58 | // or there is no page mapping for the requested action |
| ... | ... | @@ -63,6 +65,7 @@ if (!$page) { |
| 63 | 65 | } else { |
| 64 | 66 | // set authorised flag and redirect |
| 65 | 67 | $_SESSION["authorised"] = true; |
| 68 | + $default->log->debug("control.php:: set authorised flag:" . $_SESSION["authorised"]); | |
| 66 | 69 | |
| 67 | 70 | redirect($page); |
| 68 | 71 | } | ... | ... |