Browse Source

fix inequality

pull/8/merge
Kyle Spearrin 9 years ago
parent
commit
114bf7300a
  1. 2
      src/Core/Services/Implementations/OrganizationService.cs

2
src/Core/Services/Implementations/OrganizationService.cs

@ -705,7 +705,7 @@ namespace Bit.Core.Services @@ -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.");

Loading…
Cancel
Save