commit 013d4c28b2e06dc654b7f2a1f21b56b1c8a7838d
parent 63acc8619b7431122477091c6fcb08dadead219d
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Sat, 7 Nov 2020 23:01:56 +0100
Try to fix #1218
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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<Self> {
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)))