Ejemplo n.º 1
0
 public function delete()
 {
     if ($this->id === $this->currentUser()->id) {
         return false;
     }
     $id = $this->id;
     Activity::log(array('contentID' => $this->id, 'contentType' => 'account_deleted', 'description' => $this->id, 'details' => '', 'updated' => $this->currentUser()->id ? true : false));
     Event::fire('controller.user.delete', array($this));
     if (!parent::delete()) {
         return false;
     }
     return !$this->find($id) ? true : false;
 }
Ejemplo n.º 2
0
 public function delete()
 {
     return parent::delete();
 }