1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 12:43:14 +00:00

Added feature flag check

This commit is contained in:
Jared McCannon
2025-11-26 14:52:57 -06:00
parent 23ca1b6985
commit 543bea32d6

View File

@@ -192,7 +192,10 @@ public class AcceptOrgUserCommand : IAcceptOrgUserCommand
var allOrgUsers = await _organizationUserRepository.GetManyByUserAsync(user.Id);
await ValidateAutomaticUserConfirmationPolicyAsync(orgUser, allOrgUsers, user);
if (_featureService.IsEnabled(FeatureFlagKeys.AutomaticConfirmUsers))
{
await ValidateAutomaticUserConfirmationPolicyAsync(orgUser, allOrgUsers, user);
}
// Enforce Single Organization Policy of organization user is trying to join
var invitedSingleOrgPolicies = await _policyService.GetPoliciesApplicableToUserAsync(user.Id,