Fix Firm Admin client list review access expression
This commit is contained in:
@@ -2,7 +2,7 @@ from __future__ import annotations
|
||||
|
||||
from math import ceil
|
||||
|
||||
from sqlalchemy import and_, asc, case, desc, exists, func, or_, select
|
||||
from sqlalchemy import and_, asc, case, desc, exists, func, literal, or_, select
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.core.security.passwords import hash_password
|
||||
@@ -58,7 +58,7 @@ def build_clients_query(
|
||||
assoc.consultant_id.label("assoc_consultant_id"),
|
||||
assoc.partner_user_id.label("assoc_partner_user_id"),
|
||||
assoc.created_source.label("assoc_created_source"),
|
||||
(review_access if review_access is not None else False).label("has_review_access"),
|
||||
(review_access if review_access is not None else literal(False)).label("has_review_access"),
|
||||
)
|
||||
.outerjoin(assoc, assoc.client_id == Client.id)
|
||||
.outerjoin(ClientGroup, ClientGroup.id == Client.client_group_id)
|
||||
|
||||
Reference in New Issue
Block a user