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:
parent
0af3956abd
commit
93c881a7a9
4 changed files with 9 additions and 12 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue