public function handlePublishNewWriter($id = '') { if (!$this->user->isAllowed('Article', 'add') || !is_numeric($id)) { throw new Nette\Application\BadRequestException(); } $returnId = $this->articleManager->publicNewWriter($id); $this->flashMessage('Článek úspěšně přidán'); $this->redirect('Article:UpdateArticle', $returnId); }