1
0
mirror of https://github.com/bitwarden/server synced 2026-01-14 22:43:19 +00:00

[PM-29840] Correcting Auto-Confirm Org Accept User Flow (#6740)

* Populating org user userId and adding to allOrgUser list.

* Having validator check organization user existence based off email or userid.
This commit is contained in:
Jared McCannon
2025-12-17 09:19:37 -06:00
committed by GitHub
parent 04efe402be
commit 00c4ac2df1
2 changed files with 5 additions and 2 deletions

View File

@@ -270,7 +270,9 @@ public class AcceptOrgUserCommand : IAcceptOrgUserCommand
ICollection<OrganizationUser> allOrgUsers, User user)
{
var error = (await _automaticUserConfirmationPolicyEnforcementValidator.IsCompliantAsync(
new AutomaticUserConfirmationPolicyEnforcementRequest(orgUser.OrganizationId, allOrgUsers, user)))
new AutomaticUserConfirmationPolicyEnforcementRequest(orgUser.OrganizationId,
allOrgUsers.Append(orgUser),
user)))
.Match(
error => error.Message,
_ => string.Empty