1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-22 11:12:50 +00:00

Reflow some lines manually

This commit is contained in:
Jake Howard 2021-03-31 21:45:05 +01:00
parent 0af3956abd
commit 93c881a7a9
No known key found for this signature in database
GPG key ID: 57AFB45680EDD477
4 changed files with 9 additions and 12 deletions

View file

@ -174,8 +174,8 @@ impl OrgPolicy {
/// and the user is not an owner or admin of that org. This is only useful for checking
/// applicability of policy types that have these particular semantics.
pub fn is_applicable_to_user(user_uuid: &str, policy_type: OrgPolicyType, conn: &DbConn) -> bool {
// Returns confirmed users only.
for policy in OrgPolicy::find_by_user(user_uuid, conn) {
// Returns confirmed users only.
if policy.enabled && policy.has_type(policy_type) {
let org_uuid = &policy.org_uuid;
if let Some(user) = UserOrganization::find_by_user_and_org(user_uuid, org_uuid, conn) {