public function isOwner($user) { if (empty($this->album_id)) { return $this->owner_id == $user->getIdentity() && $this->owner_type == $user->getType(); } return parent::isOwner($user); }