mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-05 05:23:35 +02:00
apply policies only to confirmed members (#6892)
This commit is contained in:
@@ -269,7 +269,7 @@ impl OrgPolicy {
|
||||
continue;
|
||||
}
|
||||
|
||||
if let Some(user) = Membership::find_by_user_and_org(user_uuid, &policy.org_uuid, conn).await {
|
||||
if let Some(user) = Membership::find_confirmed_by_user_and_org(user_uuid, &policy.org_uuid, conn).await {
|
||||
if user.atype < MembershipType::Admin {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user