mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
1 seat required
This commit is contained in:
@@ -384,6 +384,11 @@ namespace Bit.Core.Services
|
||||
throw new BadRequestException($"Plan has a minimum of {plan.BaseSeats} seats.");
|
||||
}
|
||||
|
||||
if(newSeatTotal <= 0)
|
||||
{
|
||||
throw new BadRequestException("You must have at least 1 seat.");
|
||||
}
|
||||
|
||||
var additionalSeats = newSeatTotal - plan.BaseSeats;
|
||||
if(plan.MaxAdditionalSeats.HasValue && additionalSeats > plan.MaxAdditionalSeats.Value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user