1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

set acting user for user events

This commit is contained in:
Kyle Spearrin 2017-12-14 16:41:52 -05:00
parent 8898c58f3c
commit 93ccfa7eac

View File

@ -36,6 +36,7 @@ namespace Bit.Core.Services
new EventMessage new EventMessage
{ {
UserId = userId, UserId = userId,
ActingUserId = userId,
Type = type, Type = type,
Date = now Date = now
} }
@ -48,6 +49,7 @@ namespace Bit.Core.Services
{ {
OrganizationId = o.Id, OrganizationId = o.Id,
UserId = userId, UserId = userId,
ActingUserId = userId,
Type = type, Type = type,
Date = DateTime.UtcNow Date = DateTime.UtcNow
}); });
@ -60,6 +62,7 @@ namespace Bit.Core.Services
{ {
OrganizationId = o.OrganizationId, OrganizationId = o.OrganizationId,
UserId = userId, UserId = userId,
ActingUserId = userId,
Type = type, Type = type,
Date = DateTime.UtcNow Date = DateTime.UtcNow
}); });