MTrackWeb.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 23 Jun 2011 02:48:43 +0000 (10:48 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 23 Jun 2011 02:48:43 +0000 (10:48 +0800)
MTrackWeb.php

index ffb8fae..f68be2a 100644 (file)
@@ -143,10 +143,10 @@ class MTrackWeb extends HTML_FlexyFramework_Page
         } else {
             //DB_DAtaObject::debugLevel(1);
             $p->applyFilters(array(), $this->authUser);
-            
-            $p->whereAdd("Projects.id in (SELECT ProjectDirectory.project_id FROM ProjectDirectory WHERE
+            if (!$this->authUser->hasPerm('Core.Projects_All', 'S')) { 
+                $p->whereAdd("Projects.id in (SELECT ProjectDirectory.project_id FROM ProjectDirectory WHERE
                         person_id = ". $this->authUser->id . " and role != '')");
-            
+            }
             $p->whereAdd('id in (SELECT distinct(project_id) FROM mtrack_repos)');
             // $pd->whereAdd("role != ''");