|
|
|
@ -672,11 +672,7 @@ class TenantService:
|
|
|
|
if not tenant:
|
|
|
|
if not tenant:
|
|
|
|
raise TenantNotFoundError("Tenant not found.")
|
|
|
|
raise TenantNotFoundError("Tenant not found.")
|
|
|
|
|
|
|
|
|
|
|
|
ta = (
|
|
|
|
ta = db.session.query(TenantAccountJoin).filter_by(tenant_id=tenant.id, account_id=account.id).first()
|
|
|
|
db.session.query(TenantAccountJoin)
|
|
|
|
|
|
|
|
.filter_by(tenant_id=tenant.id, account_id=account.id)
|
|
|
|
|
|
|
|
.first()
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
if ta:
|
|
|
|
if ta:
|
|
|
|
tenant.role = ta.role
|
|
|
|
tenant.role = ta.role
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
|