From 5c8c915f4e9296794c4be1fa5f72764464ad06b5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 13 May 2020 09:23:59 -0400 Subject: [PATCH] Increase limits set by importer to 2k (#729) --- src/Api/Controllers/OrganizationsController.cs | 2 +- src/Api/Public/Controllers/OrganizationController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Controllers/OrganizationsController.cs b/src/Api/Controllers/OrganizationsController.cs index 7e2b5fc8a..6e86f84c9 100644 --- a/src/Api/Controllers/OrganizationsController.cs +++ b/src/Api/Controllers/OrganizationsController.cs @@ -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."); } diff --git a/src/Api/Public/Controllers/OrganizationController.cs b/src/Api/Public/Controllers/OrganizationController.cs index 996e26f13..65c7dd987 100644 --- a/src/Api/Public/Controllers/OrganizationController.cs +++ b/src/Api/Public/Controllers/OrganizationController.cs @@ -41,7 +41,7 @@ namespace Bit.Api.Public.Controllers public async Task 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."); }