Ejemplo n.º 1
0
 /**
  * Find users and show selection box
  *
  * @param framework\Request $request The request object
  */
 public function runFindAssignee(framework\Request $request)
 {
     $this->forward403unless($request->isPost());
     $this->message = false;
     if ($request['find_by']) {
         $this->selected_project = entities\Project::getB2DBTable()->selectById($request['project_id']);
         $this->users = tables\Users::getTable()->getByDetails($request['find_by'], 10);
         $this->teams = tables\Teams::getTable()->quickfind($request['find_by']);
         $this->global_roles = entities\Role::getAll();
         $this->project_roles = entities\Role::getByProjectID($this->selected_project->getID());
     } else {
         $this->message = true;
     }
 }
Ejemplo n.º 2
0
 public function componentProjectPermissions()
 {
     $this->roles = entities\Role::getAll();
     $this->project_roles = entities\Role::getByProjectID($this->project->getID());
 }