} 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 != ''");