1
0
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:
Kyle Spearrin
2018-07-09 23:07:04 -04:00
parent 90df2f21e5
commit 9fee09e204
8 changed files with 34 additions and 7 deletions

View File

@@ -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);
}