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:
parent
7116072cfa
commit
d6f1281f69
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user