public function showAction(Request $request, $id)
{
$em = $this->getDoctrine()->getManager();
$journal = $this->get('ojs.journal_service')->getSelectedJournal();
if (!$this->isGranted('VIEW', $journal, 'contacts')) {
throw new AccessDeniedException("You are not authorized for view this page!");
}
/** @var JournalContact $entity */
$entity = $em->getRepository('OjsJournalBundle:JournalContact')->find($id);
$this->throw404IfNotFound($entity);
$entity->setDefaultLocale($request->getDefaultLocale());
$token = $this->get('security.csrf.token_manager')->refreshToken('ojs_journal_journal_contact' . $entity->getId());
return $this->render('OjsJournalBundle:JournalContact:show.html.twig', array('entity' => $entity, 'token' => $token));
}