Commit f2ba463d186b4bf120ea171cf27f6cdcc596ae9f

Authored by Michael Joseph
1 parent 5da98908

removed debug output


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@58 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 3 deletions
lib/SiteMap.inc
@@ -52,14 +52,12 @@ class SiteMap { @@ -52,14 +52,12 @@ class SiteMap {
52 * have access to the page 52 * have access to the page
53 */ 53 */
54 function getPage($action, $userClass) { 54 function getPage($action, $userClass) {
55 - // TODO: need to accomodate SA having all the access of the userclasses below it  
56 // map incoming userClass to number 55 // map incoming userClass to number
57 $uc = constant($userClass); 56 $uc = constant($userClass);
58 - echo "userclass = $userClass; uc=$uc\n"; 57 +
59 // iterate through multidim sitemap array 58 // iterate through multidim sitemap array
60 foreach ($this->siteMapArray as $section => $valArr) { 59 foreach ($this->siteMapArray as $section => $valArr) {
61 foreach ($valArr as $userAccess => $pageArr) { 60 foreach ($valArr as $userAccess => $pageArr) {
62 - echo "userAccess=($userAccess)" . constant($userAccess) . "; uc=$uc\n";  
63 if ($uc <= constant($userAccess)) { 61 if ($uc <= constant($userAccess)) {
64 // now loop through pages until we find the right one 62 // now loop through pages until we find the right one
65 foreach ($pageArr as $ackshin => $page) { 63 foreach ($pageArr as $ackshin => $page) {