1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-29 13:25:17 +01:00

increase import limits

This commit is contained in:
Kyle Spearrin 2019-03-15 11:29:07 -04:00
parent 7724109caa
commit f7511fce13

View File

@ -219,7 +219,7 @@ namespace Bit.Api.Controllers
public async Task PostImport([FromBody]ImportCiphersRequestModel model)
{
if(!_globalSettings.SelfHosted &&
(model.Ciphers.Count() > 5000 || model.FolderRelationships.Count() > 5000 ||
(model.Ciphers.Count() > 6000 || model.FolderRelationships.Count() > 6000 ||
model.Folders.Count() > 1000))
{
throw new BadRequestException("You cannot import this much data at once.");
@ -236,7 +236,7 @@ namespace Bit.Api.Controllers
[FromBody]ImportOrganizationCiphersRequestModel model)
{
if(!_globalSettings.SelfHosted &&
(model.Ciphers.Count() > 5000 || model.CollectionRelationships.Count() > 5000 ||
(model.Ciphers.Count() > 6000 || model.CollectionRelationships.Count() > 12000 ||
model.Collections.Count() > 1000))
{
throw new BadRequestException("You cannot import this much data at once.");