1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 09:32:48 -05:00

event fixes

This commit is contained in:
Kyle Spearrin
2017-12-12 15:04:14 -05:00
parent 5c91949f2d
commit 6649c29a8b
5 changed files with 27 additions and 17 deletions

View File

@ -78,7 +78,8 @@ namespace Bit.Core.Services
public async Task LogCipherEventAsync(Cipher cipher, EventType type)
{
if(!cipher.OrganizationId.HasValue && (!_currentContext?.UserId.HasValue ?? true))
// Only logging organization cipher events for now.
if(!cipher.OrganizationId.HasValue || (!_currentContext?.UserId.HasValue ?? true))
{
return;
}