/**
  * @throws 403
  * @throws 404
  *
  * @return boolean
  */
 private function userCanSeeUserGroupMembers($project_id)
 {
     $project = $this->project_manager->getProject($project_id);
     $user = $this->user_manager->getCurrentUser();
     ProjectAuthorization::userCanAccessProjectAndIsProjectAdmin($user, $project);
     return true;
 }
예제 #2
0
 /**
  * @throws 403
  * @throws 404
  *
  * @return boolean
  */
 private function userCanSeeUserGroupMembers($project_id)
 {
     $user_manager = UserManager::instance();
     $project = ProjectManager::instance()->getProject($project_id);
     $user = $user_manager->getCurrentUser();
     ProjectAuthorization::userCanAccessProjectAndIsProjectAdmin($user, $project);
     return true;
 }