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