mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
max additional users check
This commit is contained in:
@ -87,6 +87,12 @@ namespace Bit.Core.Services
|
||||
StripeCustomer customer = null;
|
||||
StripeSubscription subscription = null;
|
||||
|
||||
if(signup.AdditionalUsers > plan.MaxAdditionalUsers.GetValueOrDefault(0))
|
||||
{
|
||||
throw new BadRequestException($"Selected plan allows a maximum of " +
|
||||
$"{plan.MaxAdditionalUsers.GetValueOrDefault(0)} additional users.");
|
||||
}
|
||||
|
||||
if(plan.Type == Enums.PlanType.Free)
|
||||
{
|
||||
var ownerExistingOrgCount =
|
||||
|
Reference in New Issue
Block a user