mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
@@ -91,21 +91,21 @@ class EventController extends Controller
|
||||
* Finds and displays a Event entity.
|
||||
*
|
||||
*/
|
||||
public function showAction($id)
|
||||
public function showAction($event_id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
$entity = $em->getRepository('ChillEventBundle:Event')->find($id);
|
||||
$entity = $em->getRepository('ChillEventBundle:Event')->find($event_id);
|
||||
|
||||
if (!$entity) {
|
||||
throw $this->createNotFoundException('Unable to find Event entity.');
|
||||
}
|
||||
|
||||
$deleteForm = $this->createDeleteForm($id);
|
||||
$this->denyAccessUnlessGranted('CHILL_EVENT_SEE_DETAILS', $entity,
|
||||
"You are not allowed to see details on this event");
|
||||
|
||||
return $this->render('ChillEventBundle:Event:show.html.twig', array(
|
||||
'entity' => $entity,
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
'event' => $entity
|
||||
));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user