Daniel García
4 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
1 additions and
1 deletions
-
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))) |
|
|
|