mirror of
https://github.com/bitwarden/server
synced 2025-12-12 06:13:43 +00:00
Increase limits set by importer to 2k (#729)
This commit is contained in:
@@ -375,7 +375,7 @@ namespace Bit.Api.Controllers
|
||||
public async Task Import(string id, [FromBody]ImportOrganizationUsersRequestModel model)
|
||||
{
|
||||
if (!_globalSettings.SelfHosted &&
|
||||
(model.Groups.Count() > 200 || model.Users.Count(u => !u.Deleted) > 1000))
|
||||
(model.Groups.Count() > 2000 || model.Users.Count(u => !u.Deleted) > 2000))
|
||||
{
|
||||
throw new BadRequestException("You cannot import this much data at once.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user