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:
parent
8898c58f3c
commit
93ccfa7eac
@ -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
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user