mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
sync with user externalids
This commit is contained in:
@ -93,7 +93,7 @@ namespace Bit.Api.Controllers
|
||||
|
||||
var userId = _userService.GetProperUserId(User);
|
||||
var result = await _organizationService.InviteUserAsync(orgGuidId, userId.Value, model.Email, model.Type.Value,
|
||||
model.AccessAll, model.Collections?.Select(c => c.ToSelectionReadOnly()));
|
||||
model.AccessAll, null, model.Collections?.Select(c => c.ToSelectionReadOnly()));
|
||||
}
|
||||
|
||||
[HttpPut("{id}/reinvite")]
|
||||
|
@ -242,9 +242,9 @@ namespace Bit.Api.Controllers
|
||||
await _organizationService.ImportAsync(
|
||||
orgIdGuid,
|
||||
userId.Value,
|
||||
model.Groups.Select(g => g.ToGroupTuple(orgIdGuid)),
|
||||
model.Users.Where(u => !u.Disabled).Select(u => u.Email),
|
||||
model.Users.Where(u => u.Disabled).Select(u => u.Email));
|
||||
model.Groups.Select(g => g.ToImportedGroup(orgIdGuid)),
|
||||
model.Users.Where(u => !u.Disabled).Select(u => u.ToImportedOrganizationUser()),
|
||||
model.Users.Where(u => u.Disabled).Select(u => u.ExternalId));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user