mirror of
https://github.com/bitwarden/server
synced 2025-12-16 16:23:31 +00:00
Cleaned up implementation of enforcement validator (for the user).
This commit is contained in:
@@ -198,8 +198,8 @@ public class ConfirmOrganizationUserCommand : IConfirmOrganizationUserCommand
|
||||
{
|
||||
var error = (await _automaticUserConfirmationPolicyEnforcementValidator.IsCompliantAsync(
|
||||
new AutomaticUserConfirmationPolicyEnforcementRequest(
|
||||
userOrgs.First(x => x.OrganizationId == organizationId),
|
||||
userOrgs.Where(x => x.OrganizationId != organizationId),
|
||||
organizationId,
|
||||
userOrgs,
|
||||
user)))
|
||||
.Match(
|
||||
error => error.Message,
|
||||
|
||||
Reference in New Issue
Block a user