- Problem editing user model (Boolean values not set)
This commit is contained in:
@@ -35,7 +35,8 @@ def is_valid_tenant(tenant_id):
|
||||
if tenant_id == 1: # The 'root' tenant, is always valid
|
||||
return True
|
||||
tenant = Tenant.query.get(tenant_id)
|
||||
Database(tenant).switch_schema()
|
||||
# Use the tenant_id (schema name), not the Tenant object, to switch schema
|
||||
Database(tenant_id).switch_schema()
|
||||
if tenant is None:
|
||||
raise EveAITenantNotFound()
|
||||
elif tenant.type == 'Inactive':
|
||||
|
||||
Reference in New Issue
Block a user