public function getBoardAction($id) { $journal = $this->get('ojs.journal_service')->getSelectedJournal(); if (!$this->isGranted('VIEW', $journal, 'boards')) { throw new AccessDeniedException(); } $entity = $this->getOr404($id); return $entity; }