From d6f1281f698b76ce8475ffafb9f8cda7aeec47b9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 11 Jan 2019 08:46:55 -0500 Subject: [PATCH] only log cipher deletes where user can edit --- src/Core/Services/Implementations/CipherService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/CipherService.cs b/src/Core/Services/Implementations/CipherService.cs index 11da1be194..8cc173eeb1 100644 --- a/src/Core/Services/Implementations/CipherService.cs +++ b/src/Core/Services/Implementations/CipherService.cs @@ -290,7 +290,7 @@ namespace Bit.Core.Services { var cipherIdsSet = new HashSet(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);