Allow users to see inactive projects

This commit is contained in:
Frederic Guillot
2016-07-28 16:56:37 -04:00
parent 837173cf93
commit f3e16da4ac
4 changed files with 37 additions and 1 deletions

View File

@@ -151,6 +151,18 @@ class ProjectPermissionModel extends Base
return array_keys($this->projectUserRoleModel->getActiveProjectsByUser($user_id));
}
/**
* Get all project ids by user
*
* @access public
* @param integer $user_id
* @return array
*/
public function getProjectIds($user_id)
{
return array_keys($this->projectUserRoleModel->getProjectsByUser($user_id));
}
/**
* Copy permissions to another project
*