1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-08 22:58:11 -05:00

logic error on cipher event log

This commit is contained in:
Kyle Spearrin 2017-12-08 14:59:21 -05:00
parent c01fd359f0
commit f02679f609

View File

@ -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;
} }