X-Git-Url: http://git.roojs.org/?p=web.mtrack;a=blobdiff_plain;f=MTrackWeb.php;h=27a511ae2f058cbea1d945b315c9d0afe0b9ed84;hp=0fdf0698dc1e14e67f941b16a7de68f215faec68;hb=HEAD;hpb=325b3f2e68990b83fb16019157d5ddd3e2b218c2 diff --git a/MTrackWeb.php b/MTrackWeb.php index 0fdf0698..03e3c3c2 100644 --- a/MTrackWeb.php +++ b/MTrackWeb.php @@ -10,6 +10,8 @@ class MTrackWeb extends HTML_FlexyFramework_Page var $priorities = array(); var $severities = array(); var $link = false; // the link handler.. + var $authUser; + var $currentProject; function hasPerm($what, $cando) { // our whole perm logic sits in here.... @@ -156,16 +158,20 @@ class MTrackWeb extends HTML_FlexyFramework_Page $ar = $p->fetchAll('id', 'name'); } else { - DB_DAtaObject::debugLevel(1); + + // DB_DAtaObject::debugLevel(1); $p->applyFilters(array(), $this->authUser, $this); 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 != '')"); } + /* + * SOME PROJECTS MIGHT NOT HAVE REPO's... $p->whereAdd('id in (SELECT distinct(project_id) FROM mtrack_repos)'); + */ // $pd->whereAdd("role != ''"); - $p->orderBy('Projects.name ASC'); + $p->orderBy('core_project.name ASC'); unset($p->client_id); // default projects serach enforces this.. $ar = $p->fetchAll('id', 'name'); } @@ -272,7 +278,7 @@ class MTrackWeb extends HTML_FlexyFramework_Page return HTML_FlexyFramework::run('Wiki/Today'); } - function post() + function post($request) { header("Status: 404 Not Found"); die("invalid post request? ");