Allow users to see inactive projects
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user