From f3e16da4ac8eb5f06c7f8a0aed49fd3dd11817ec Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 28 Jul 2016 16:56:37 -0400 Subject: Allow users to see inactive projects --- app/Model/ProjectPermissionModel.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'app/Model/ProjectPermissionModel.php') diff --git a/app/Model/ProjectPermissionModel.php b/app/Model/ProjectPermissionModel.php index a7c1857c..4882343d 100644 --- a/app/Model/ProjectPermissionModel.php +++ b/app/Model/ProjectPermissionModel.php @@ -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 * -- cgit v1.2.3