From 013d4c28b2e06dc654b7f2a1f21b56b1c8a7838d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Sat, 7 Nov 2020 23:01:56 +0100 Subject: [PATCH] Try to fix #1218 --- src/db/models/org_policy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/models/org_policy.rs b/src/db/models/org_policy.rs index fa18ac9d..0004b04c 100644 --- a/src/db/models/org_policy.rs +++ b/src/db/models/org_policy.rs @@ -129,7 +129,7 @@ impl OrgPolicy { pub fn find_by_user(user_uuid: &str, conn: &DbConn) -> Vec { db_run! { conn: { org_policies::table - .left_join( + .inner_join( users_organizations::table.on( users_organizations::org_uuid.eq(org_policies::org_uuid) .and(users_organizations::user_uuid.eq(user_uuid)))