Stefan Melmuk
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/db/models/org_policy.rs
|
|
|
@ -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; |
|
|
|
} |
|
|
|
|