public function handleDelete($id = '', $subSection = '') { if (!$this->user->isAllowed(self::RESSEC, 'moderate')) { throw new \Nette\Application\ForbiddenRequestException(); } if (!$id) { throw new Nette\Application\BadRequestException(); } $this->articleManager->deleteSection($id, $subSection == 'sub' ? true : false, $subSection == 'ser' ? true : false); $this->redrawControl('menu'); $this->redrawAjax('section'); }