Exemplo n.º 1
0
 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');
 }