/** * (Dis)allows event invitation for viewing * * @Privilege("show") * * @param int $id Event ID */ public function handleShow($id) { $event = $this->events->showEventInvitation($id); if ($event->showevent) { $this->flashMessage("Lísteček na akci byl zobrazen"); } else { $this->flashMessage("Lísteček na akci byl odzobrazen"); } $this->redirect('this'); }