mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
log event when removing user from group/collection
This commit is contained in:
@@ -919,7 +919,7 @@ namespace Bit.Core.Services
|
||||
organizationId, email, false);
|
||||
if(existingOrgUserCount > 0)
|
||||
{
|
||||
throw new BadRequestException("User already invited.");
|
||||
continue;
|
||||
}
|
||||
|
||||
var orgUser = new OrganizationUser
|
||||
@@ -946,6 +946,7 @@ namespace Bit.Core.Services
|
||||
}
|
||||
|
||||
await SendInviteAsync(orgUser);
|
||||
await _eventService.LogOrganizationUserEventAsync(orgUser, EventType.OrganizationUser_Invited);
|
||||
orgUsers.Add(orgUser);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user