public function showNotes($id) { if ($this->checkProjectPermissions($id) == false) { return ['error' => 'Access forbidden']; } return $this->service->showNotes($id); }