Exemple #1
0
 public function deleteEntity($id)
 {
     if ($id == 'system') {
         throw new Forbidden();
     }
     if ($id == $this->getUser()->id) {
         throw new Forbidden();
     }
     return parent::deleteEntity($id);
 }