Exemplo n.º 1
0
 public function deleteEntity($id)
 {
     if ($id == 'system') {
         throw new Forbidden();
     }
     if ($id == $this->getUser()->id) {
         throw new Forbidden();
     }
     return parent::deleteEntity($id);
 }
Exemplo n.º 2
0
 public function deleteEntity($id)
 {
     if ($id == 'system') {
         throw new Forbidden();
     }
     return parent::deleteEntity($id);
 }