/**
  * @param $id
  * @param $memberId
  * @return Response
  */
 public function isMember($id, $memberId)
 {
     if ($this->checkProjectPermissions($id) == false) {
         return ['error' => 'Access forbidden'];
     }
     return $this->service->isMember($id, $memberId);
 }
 private function checkProjectMember($projectId)
 {
     $userId = Authorizer::getResourceOwnerId();
     return $this->service->isMember($projectId, $userId);
 }
 /**
  * Check if the user is member of a project
  * @param  Request $request form request
  * @param  integer  $id      project id
  * @param  integer  $userId  user id
  * @return boolean
  */
 public function isMember(Request $request, $id, $userId)
 {
     return $this->service->isMember($id, $userId);
 }
 public function isMember($id, $id_user)
 {
     return $this->service->isMember($id, $id_user);
 }
 /**
  * @param $id
  * @param $memberId
  * @return Response
  */
 public function isMember($id, $memberId)
 {
     return $this->service->isMember($id, $memberId);
 }
 /**
  * @param $projectId
  * @param $memberId
  * @return array
  */
 public function show($projectId, $memberId)
 {
     return $this->service->isMember($projectId, $memberId) ? ['message' => 'Is member'] : ['message' => 'Is not member'];
 }
 public function checkMember($project_id, $member_id)
 {
     return $this->service->isMember($project_id, $member_id);
 }
 public function isMember($projectId, $userId)
 {
     return $this->service->isMember($projectId, $userId);
 }