MTrackWeb.php
authorAlan Knowles <alan@akbkhome.com>
Wed, 20 Apr 2011 07:59:50 +0000 (15:59 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 20 Apr 2011 07:59:50 +0000 (15:59 +0800)
MTrackWeb.php

index 2e636e4..e796f51 100644 (file)
@@ -48,7 +48,6 @@ class MTrackWeb extends HTML_FlexyFramework_Page
             // all permissions to view public stuff.
             return true;
         }
-        DB_DataObject::debugLevel(1);
         if (!$this->authUser->hasPerm($what, $cando)) {
             echo "NO PERMS $what $cando";
             echo '<PRE>'; print_r($this->authUser->getPerms());
@@ -132,7 +131,8 @@ class MTrackWeb extends HTML_FlexyFramework_Page
     
     function loadProjectList()
     {
-        
+                DB_DataObject::debugLevel(1);
+
         $p = DB_DataObject::factory('Projects');
         if (!$this->authUser) {
             $p->code = '*PUBLIC';