Show only active projects in board selector
This commit is contained in:
@@ -20,7 +20,19 @@ class ProjectUserRole extends Base
|
||||
const TABLE = 'project_has_users';
|
||||
|
||||
/**
|
||||
* Get the list of project visible by the given user
|
||||
* Get the list of active project for the given user
|
||||
*
|
||||
* @access public
|
||||
* @param integer $user_id
|
||||
* @return array
|
||||
*/
|
||||
public function getActiveProjectsByUser($user_id)
|
||||
{
|
||||
return $this->getProjectsByUser($user_id, $status = array(Project::ACTIVE));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the list of project visible for the given user
|
||||
*
|
||||
* @access public
|
||||
* @param integer $user_id
|
||||
|
||||
Reference in New Issue
Block a user