is_admin) { return Response::allow(); } if (License::isCommunity()) { return Response::deny('This action is unauthorized.'); } return $album->songs->every(static fn (Song $song) => $song->ownedBy($user)) ? Response::allow() : Response::deny('Album is not owned by the user.'); } }