public function find($id) { $account = parent::find($id); if ($account && $account->getOwner() == $this->user()->getId()) { return $account; } else { return false; } }
public function find($pk) { $result = parent::find($pk); if (!$result) { return false; } if ($result->getOwner() == $this->user()->getId()) { return $result; } return false; }