mirror of
https://github.com/bitwarden/server.git
synced 2025-05-02 10:12:16 -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));
|
return new Invalid<PasswordManagerSubscriptionUpdate>(new PasswordManagerMustHaveSeatsError(subscriptionUpdate));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subscriptionUpdate.MaxSeatsReached)
|
if (subscriptionUpdate.MaxSeatsExceeded)
|
||||||
{
|
{
|
||||||
return new Invalid<PasswordManagerSubscriptionUpdate>(
|
return new Invalid<PasswordManagerSubscriptionUpdate>(
|
||||||
new PasswordManagerSeatLimitHasBeenReachedError(subscriptionUpdate));
|
new PasswordManagerSeatLimitHasBeenReachedError(subscriptionUpdate));
|
||||||
|
@ -48,6 +48,11 @@ public class PasswordManagerSubscriptionUpdate
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool MaxSeatsReached => UpdatedSeatTotal.HasValue && MaxAutoScaleSeats.HasValue && UpdatedSeatTotal.Value >= MaxAutoScaleSeats.Value;
|
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 Plan.PasswordManagerPlanFeatures PasswordManagerPlan { get; }
|
||||||
|
|
||||||
public InviteOrganization InviteOrganization { get; }
|
public InviteOrganization InviteOrganization { get; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user