1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-22 12:04:27 -05:00

Add XML documentation for TwoFactorPoliciesForActiveMemberships property in RequireTwoFactorPolicyRequirement to clarify its purpose and return value.

This commit is contained in:
Rui Tome 2025-05-21 15:52:04 +01:00
parent 102c8adf61
commit f7771e13a5
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066

View File

@ -59,6 +59,10 @@ public class RequireTwoFactorPolicyRequirement : IPolicyRequirement
OrganizationUserStatusType.Accepted or
OrganizationUserStatusType.Confirmed));
/// <summary>
/// Gets the two-factor policies for active memberships.
/// </summary>
/// <returns>The two-factor policies for active memberships.</returns>
public IEnumerable<PolicyDetails> TwoFactorPoliciesForActiveMemberships =>
_policyDetails.Where(p => p.OrganizationUserStatus is
OrganizationUserStatusType.Accepted or