1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-22 20:11:04 -05:00

increase folder limits on imports

This commit is contained in:
Kyle Spearrin 2019-01-23 22:40:19 -05:00
parent a07f37e093
commit 43967ebbc1

View File

@ -220,7 +220,7 @@ namespace Bit.Api.Controllers
{ {
if(!_globalSettings.SelfHosted && if(!_globalSettings.SelfHosted &&
(model.Ciphers.Count() > 5000 || model.FolderRelationships.Count() > 5000 || (model.Ciphers.Count() > 5000 || model.FolderRelationships.Count() > 5000 ||
model.Folders.Count() > 200)) model.Folders.Count() > 1000))
{ {
throw new BadRequestException("You cannot import this much data at once."); throw new BadRequestException("You cannot import this much data at once.");
} }
@ -237,7 +237,7 @@ namespace Bit.Api.Controllers
{ {
if(!_globalSettings.SelfHosted && if(!_globalSettings.SelfHosted &&
(model.Ciphers.Count() > 5000 || model.CollectionRelationships.Count() > 5000 || (model.Ciphers.Count() > 5000 || model.CollectionRelationships.Count() > 5000 ||
model.Collections.Count() > 200)) model.Collections.Count() > 1000))
{ {
throw new BadRequestException("You cannot import this much data at once."); throw new BadRequestException("You cannot import this much data at once.");
} }