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