From 114bf7300af4f717d7784645360979e9062ccd2c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 18 May 2017 12:15:16 -0400 Subject: [PATCH] fix inequality --- src/Core/Services/Implementations/OrganizationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/OrganizationService.cs b/src/Core/Services/Implementations/OrganizationService.cs index d7e460d8f6..0dd02231b5 100644 --- a/src/Core/Services/Implementations/OrganizationService.cs +++ b/src/Core/Services/Implementations/OrganizationService.cs @@ -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.");