mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
bug6037: when planId null is received, remove only those subscription plans not implied by any other active subscriptions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user