1
0
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:
Kyle Spearrin 2020-05-13 09:23:59 -04:00 committed by GitHub
parent 10a6e12d09
commit 5c8c915f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.");
}

View File

@ -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.");
}