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; }
public function delete() { return parent::delete(); }