1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

only log cipher deletes where user can edit

This commit is contained in:
Kyle Spearrin 2019-01-11 08:46:55 -05:00
parent 7116072cfa
commit d6f1281f69

View File

@ -290,7 +290,7 @@ namespace Bit.Core.Services
{
var cipherIdsSet = new HashSet<Guid>(cipherIds);
var ciphers = await _cipherRepository.GetManyByUserIdAsync(deletingUserId);
var deletingCiphers = ciphers.Where(c => cipherIdsSet.Contains(c.Id));
var deletingCiphers = ciphers.Where(c => cipherIdsSet.Contains(c.Id) && c.Edit);
await _cipherRepository.DeleteAsync(cipherIds, deletingUserId);