Esempio n. 1
0
 /**
  * Find users and show selection box
  *
  * @param TBGRequest $request The request object
  */
 public function runFindAssignee(TBGRequest $request)
 {
     $this->forward403unless($request->isPost());
     $this->message = false;
     if ($request['find_by']) {
         $this->selected_project = TBGContext::factory()->TBGProject($request['project_id']);
         $this->users = TBGUsersTable::getTable()->getByDetails($request['find_by'], 10);
         $this->teams = TBGTeamsTable::getTable()->quickfind($request['find_by']);
         $this->global_roles = TBGRole::getAll();
         $this->project_roles = TBGRole::getByProjectID($this->selected_project->getID());
     } else {
         $this->message = true;
     }
 }
 public function componentProjectPermissions()
 {
     $this->roles = TBGRole::getAll();
     $this->project_roles = TBGRole::getByProjectID($this->project->getID());
 }