mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
Increase limits set by importer to 2k (#729)
This commit is contained in:
parent
10a6e12d09
commit
5c8c915f4e
@ -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.");
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ namespace Bit.Api.Public.Controllers
|
||||
public async Task<IActionResult> Import([FromBody]OrganizationImportRequestModel model)
|
||||
{
|
||||
if (!_globalSettings.SelfHosted &&
|
||||
(model.Groups.Count() > 200 || model.Members.Count(u => !u.Deleted) > 1000))
|
||||
(model.Groups.Count() > 2000 || model.Members.Count(u => !u.Deleted) > 2000))
|
||||
{
|
||||
throw new BadRequestException("You cannot import this much data at once.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user