mirror of
https://github.com/bitwarden/server
synced 2025-12-22 11:13:27 +00:00
set acting user for user events
This commit is contained in:
@@ -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
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user