add core project
[web.mtrack] / MTrackWeb / Roo.php
index df4a86b..35111d3 100644 (file)
@@ -20,11 +20,11 @@ class MTrackWeb_Roo extends Pman_Roo
         'Mtrack_ticket', /// all of these MUST have applyFilters, and check authenication..
         'mtrack_change',
         'core_enum',
-        'Person',
+        //'Person',  // fixme - need to verify this is protected..
         'mtrack_milestone',
-        'Projects',
-        'Images',
-        'mtrack_repos'
+        'core_project',  // fixme - we should remove code from projects....
+        'Images',   // not sure about this...
+        'mtrack_repos'   // not sure about this...
         
     );
     
@@ -48,13 +48,13 @@ class MTrackWeb_Roo extends Pman_Roo
     
     function checkPerm($obj, $lvl, $req=null)
     {
-        if ($this->authUser) {
+        //if ($this->authUser) {
             $res = parent::checkPerm($obj,$lvl,$req);
             
             if ($res) {
                 return $res;
             }
-        }
+        //}
         // not authenticated...
          
         // these checks only apply to non-company users.
@@ -69,10 +69,9 @@ class MTrackWeb_Roo extends Pman_Roo
                 if ($lvl != 'S') {
                     return false;
                 }
-                var_dump($req['etype']);
+                
                 switch ($req['etype']) {
-                   // case 'severity':
-                    case 'classification':
+                     case 'classification':
                     case 'severity':
                     case 'resolution':
                     case 'priority':
@@ -94,7 +93,7 @@ class MTrackWeb_Roo extends Pman_Roo
             
         }
         
-        
-        
     }
+     
+    
 }