1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-28 06:36:15 -05:00
This commit is contained in:
Brandon 2025-06-12 15:16:08 -04:00
parent 47cc09963e
commit bab0429adf
No known key found for this signature in database
GPG Key ID: A0E0EF0B207BA40D

View File

@ -206,11 +206,11 @@ public class ImportOrganizationUsersAndGroupsCommand : IImportOrganizationUsersA
if (organization.Seats.HasValue) if (organization.Seats.HasValue)
{ {
seatsAvailable = organization.Seats.Value - await _organizationUserRepository.GetOccupiedSeatCountByOrganizationIdAsync(organization.Id); var occupiedSeats = await _organizationUserRepository.GetOccupiedSeatCountByOrganizationIdAsync(organization.Id);
seatsAvailable = organization.Seats.Value - occupiedSeats;
enoughSeatsAvailable = seatsAvailable >= usersToAdd.Count(); enoughSeatsAvailable = seatsAvailable >= usersToAdd.Count();
} }
var userInvites = new List<(OrganizationUserInvite, string)>(); var userInvites = new List<(OrganizationUserInvite, string)>();
var hasStandaloneSecretsManager = await _paymentService.HasSecretsManagerStandalone(organization); var hasStandaloneSecretsManager = await _paymentService.HasSecretsManagerStandalone(organization);