Browse Source
apply policies only to confirmed members
pull/6892/head
Stefan Melmuk
3 months ago
No known key found for this signature in database
GPG Key ID: 817020C608FE9C09
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
} |
|
|
} |
|
|
|