public function handleDelNewWriter($id = '') { if (!$this->user->isAllowed('Article', 'moderate') || !is_numeric($id)) { throw new Nette\Application\BadRequestException(); } $this->articleManager->delNewWriter($id); $this->redrawAjax('newWriters'); }