role->isAtLeastEqualsTo(UserRole::Admin); } public function update(User | Customer $user, Setting | SettingDto | null $_ = null): bool { if ($user instanceof Customer) { return false; } return $user->role->isAtLeastEqualsTo(UserRole::Admin); } }