1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

set cipher id to limit collection scope

This commit is contained in:
Kyle Spearrin
2018-10-22 10:15:03 -04:00
parent 4e8a313d3d
commit c710226223
3 changed files with 49 additions and 1 deletions

View File

@ -63,6 +63,7 @@ namespace Bit.Core.Services
throw new BadRequestException("You do not have permissions to edit this.");
}
cipher.UserId = savingUserId;
if(cipher.Id == default(Guid))
{
if(cipher.OrganizationId.HasValue && collectionIds != null)