mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Import Invite Error (#1121)
* throw error if user is already invited on import * added back the single InviteUser OrgService method
This commit is contained in:
@ -124,8 +124,8 @@ namespace Bit.Api.Public.Controllers
|
||||
AccessAll = model.AccessAll.Value,
|
||||
Collections = associations
|
||||
};
|
||||
var userPromise = await _organizationService.InviteUserAsync(_currentContext.OrganizationId.Value, null, model.ExternalId, invite);
|
||||
var user = userPromise.FirstOrDefault();
|
||||
var user = await _organizationService.InviteUserAsync(_currentContext.OrganizationId.Value, null,
|
||||
model.Email, model.Type.Value, model.AccessAll.Value, model.ExternalId, associations);
|
||||
var response = new MemberResponseModel(user, associations);
|
||||
return new JsonResult(response);
|
||||
}
|
||||
|
Reference in New Issue
Block a user