1
0
mirror of https://github.com/bitwarden/server synced 2025-12-11 05:43:35 +00:00

fix inequality

This commit is contained in:
Kyle Spearrin
2017-05-18 12:15:16 -04:00
parent c582929daf
commit 114bf7300a

View File

@@ -705,7 +705,7 @@ namespace Bit.Core.Services
{
var userCount = await _organizationUserRepository.GetCountByOrganizationIdAsync(organizationId);
var availableSeats = organization.Seats.Value - userCount;
if(availableSeats >= emails.Count())
if(availableSeats < emails.Count())
{
throw new BadRequestException("You have reached the maximum number of users " +
$"({organization.Seats.Value}) for this organization.");