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

index 5f783ef..dc5b192 100644 (file)
@@ -143,6 +143,10 @@ class MTrackWeb extends HTML_FlexyFramework_Page
         } else {
             
             $p->applyFilters(array(), $this->authUser);
+            
+            $p->whereAdd("Projects.id in (SELECT ProjectDirectory.project_id FROM ProjectDirectory WHERE
+                        user_id = '. $this->authUser->id . ' and role != '')")
+            
             $p->whereAdd('id in (SELECT distinct(project_id) FROM mtrack_repos)');
             // $pd->whereAdd("role != ''");