From 448ab08b193e54f2e39a9bc8f10b90e1eea4dfb4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 16 Nov 2017 20:05:06 -0500 Subject: [PATCH] limit to 500 on non self-hosted --- src/Api/Controllers/CiphersController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Api/Controllers/CiphersController.cs b/src/Api/Controllers/CiphersController.cs index 191331e74c..1c8ce75815 100644 --- a/src/Api/Controllers/CiphersController.cs +++ b/src/Api/Controllers/CiphersController.cs @@ -335,9 +335,9 @@ namespace Bit.Api.Controllers [HttpPost("delete")] public async Task DeleteMany([FromBody]CipherBulkDeleteRequestModel model) { - if(model.Ids.Count() > 200) + if(!_globalSettings.SelfHosted && model.Ids.Count() > 500) { - throw new BadRequestException("You can only delete up to 200 items at a time."); + throw new BadRequestException("You can only delete up to 500 items at a time."); } var userId = _userService.GetProperUserId(User).Value; @@ -348,9 +348,9 @@ namespace Bit.Api.Controllers [HttpPost("move")] public async Task MoveMany([FromBody]CipherBulkMoveRequestModel model) { - if(model.Ids.Count() > 200) + if(!_globalSettings.SelfHosted && model.Ids.Count() > 500) { - throw new BadRequestException("You can only move up to 200 items at a time."); + throw new BadRequestException("You can only move up to 500 items at a time."); } var userId = _userService.GetProperUserId(User).Value;