public function showAction($id)
{
/** @var JournalFile $entity */
$journal = $this->get('ojs.journal_service')->getSelectedJournal();
$entity = $this->getDoctrine()->getRepository('OjsJournalBundle:JournalFile')->find($id);
$this->throw404IfNotFound($entity);
if (!$this->isGranted('VIEW', $journal, 'files')) {
throw new AccessDeniedException("You are not authorized for this file!");
}
$token = $this->get('security.csrf.token_manager')->refreshToken('ojs_journal_filemanager' . $entity->getId());
return $this->render('OjsJournalBundle:JournalFile:show.html.twig', ['entity' => $entity, 'token' => $token]);
}