Exemplo n.º 1
0
 public function handleDislikeArticle($id)
 {
     if ($this->user->isAllowed('Article', 'like')) {
         if ($this->articleManager->userDislikeArticle($id, $this->user->id)) {
             // todo: if ajax, redraw component
             $this->redirect('this');
         } else {
             $this->redirect('this');
         }
     }
 }