mirror of
https://github.com/bitwarden/server
synced 2025-12-22 11:13:27 +00:00
logic error on cipher event log
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
public async Task LogCipherEventAsync(Cipher cipher, EventType type)
|
public async Task LogCipherEventAsync(Cipher cipher, EventType type)
|
||||||
{
|
{
|
||||||
if(!cipher.OrganizationId.HasValue || (!_currentContext?.UserId.HasValue ?? true))
|
if(!cipher.OrganizationId.HasValue && (!_currentContext?.UserId.HasValue ?? true))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user