mirror of
https://github.com/bitwarden/server.git
synced 2025-05-02 02:02:18 -05:00
[PM-20586] - Fixing allowing seats to increase to limit. (#5705)
This commit is contained in:
parent
60f6189314
commit
12fc9dffd4
@ -44,7 +44,7 @@ public class InviteUsersPasswordManagerValidator(
|
||||
return new Invalid<PasswordManagerSubscriptionUpdate>(new PasswordManagerMustHaveSeatsError(subscriptionUpdate));
|
||||
}
|
||||
|
||||
if (subscriptionUpdate.MaxSeatsReached)
|
||||
if (subscriptionUpdate.MaxSeatsExceeded)
|
||||
{
|
||||
return new Invalid<PasswordManagerSubscriptionUpdate>(
|
||||
new PasswordManagerSeatLimitHasBeenReachedError(subscriptionUpdate));
|
||||
|
@ -48,6 +48,11 @@ public class PasswordManagerSubscriptionUpdate
|
||||
/// </summary>
|
||||
public bool MaxSeatsReached => UpdatedSeatTotal.HasValue && MaxAutoScaleSeats.HasValue && UpdatedSeatTotal.Value >= MaxAutoScaleSeats.Value;
|
||||
|
||||
/// <summary>
|
||||
/// If the new seat total exceeds the organization's auto-scale seat limit
|
||||
/// </summary>
|
||||
public bool MaxSeatsExceeded => UpdatedSeatTotal.HasValue && MaxAutoScaleSeats.HasValue && UpdatedSeatTotal.Value > MaxAutoScaleSeats.Value;
|
||||
|
||||
public Plan.PasswordManagerPlanFeatures PasswordManagerPlan { get; }
|
||||
|
||||
public InviteOrganization InviteOrganization { get; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user