/** * Changing visibility of news posts * * @Privilege("show") * * @param int $id News ID */ public function handleShow($id) { $news = $this->news->showNews($id); if (!$news->show) { $this->flashMessage("Zpráva byla odzobrazena"); } else { $this->flashMessage("Zprava byla zobrazena"); } $this->redirect('News:'); }