mirror of
https://github.com/bitwarden/server.git
synced 2025-06-27 22:26:13 -05:00
wip
This commit is contained in:
parent
47cc09963e
commit
bab0429adf
@ -206,11 +206,11 @@ public class ImportOrganizationUsersAndGroupsCommand : IImportOrganizationUsersA
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
var userInvites = new List<(OrganizationUserInvite, string)>();
|
||||
var hasStandaloneSecretsManager = await _paymentService.HasSecretsManagerStandalone(organization);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user