Browse Source

apply policies only to confirmed members

pull/6892/head
Stefan Melmuk 3 months ago
parent
commit
b5c1715138
No known key found for this signature in database GPG Key ID: 817020C608FE9C09
  1. 2
      src/db/models/org_policy.rs

2
src/db/models/org_policy.rs

@ -269,7 +269,7 @@ impl OrgPolicy {
continue; 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 { if user.atype < MembershipType::Admin {
return true; return true;
} }

Loading…
Cancel
Save