mirror of
https://github.com/bitwarden/server.git
synced 2025-02-17 02:01:53 +01:00
Only apply count restriction to non-deleted users (#685)
This commit is contained in:
parent
168f0314f8
commit
d6ed8291e6
@ -374,7 +374,8 @@ namespace Bit.Api.Controllers
|
||||
[HttpPost("{id}/import")]
|
||||
public async Task Import(string id, [FromBody]ImportOrganizationUsersRequestModel model)
|
||||
{
|
||||
if (!_globalSettings.SelfHosted && (model.Groups.Count() > 200 || model.Users.Count() > 1000))
|
||||
if (!_globalSettings.SelfHosted &&
|
||||
(model.Groups.Count() > 200 || model.Users.Count(u => !u.Deleted) > 1000))
|
||||
{
|
||||
throw new BadRequestException("You cannot import this much data at once.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user