mirror of
https://github.com/bitwarden/server.git
synced 2025-02-07 00:21:32 +01:00
[pm-16949] Include revoked users in applicable policies (#5261)
This commit is contained in:
parent
04e5626c57
commit
ee2d7df061
@ -2249,7 +2249,7 @@ public class OrganizationService : IOrganizationService
|
||||
if (!userHasTwoFactorEnabled)
|
||||
{
|
||||
var invitedTwoFactorPolicies = await _policyService.GetPoliciesApplicableToUserAsync(userId,
|
||||
PolicyType.TwoFactorAuthentication, OrganizationUserStatusType.Invited);
|
||||
PolicyType.TwoFactorAuthentication, OrganizationUserStatusType.Revoked);
|
||||
if (invitedTwoFactorPolicies.Any(p => p.OrganizationId == orgUser.OrganizationId))
|
||||
{
|
||||
twoFactorCompliant = false;
|
||||
|
Loading…
Reference in New Issue
Block a user