bug6037: when planId null is received, remove only those subscription plans not implied by any other active subscriptions

This commit is contained in:
Axel Uhl
2024-07-28 18:19:59 +02:00
parent ba9cd88376
commit 82dc504cd4
@@ -2752,7 +2752,7 @@ implements ReplicableSecurityService, ClearStateTestSupport {
if (newSubscription != null && !newSubscription.hasPlan()) {
Iterable<SubscriptionPlan> plans = allSubscriptionPlans.values();
for (SubscriptionPlan plan : plans) {
removeUserPlanRoles(user, plan, /* checkOverlappingRoles */ false);
removeUserPlanRoles(user, plan, /* checkOverlappingRoles */ true);
}
} else {
assert currentSubscription == null || newSubscription == null