diff options
author | Busfreak <Busfreak@users.noreply.github.com> | 2015-12-23 00:18:32 +0100 |
---|---|---|
committer | Busfreak <Busfreak@users.noreply.github.com> | 2015-12-23 00:18:32 +0100 |
commit | 050d69091822641dabd0ded1b6023b7ef9f90311 (patch) | |
tree | 7a6698152aafc9f1eece503f5fa4d4a772782fcd /app/Model/ProjectUserRole.php | |
parent | be2fde7cc01228ad4526e05d77a3d4865e550357 (diff) | |
parent | 8ff2032ea3fa49972fe076166c831719131e829d (diff) |
Merge pull request #1 from fguillot/master
please merge
Diffstat (limited to 'app/Model/ProjectUserRole.php')
-rw-r--r-- | app/Model/ProjectUserRole.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app/Model/ProjectUserRole.php b/app/Model/ProjectUserRole.php index 28e6c8c6..b2c38622 100644 --- a/app/Model/ProjectUserRole.php +++ b/app/Model/ProjectUserRole.php @@ -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 |