mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: migrate orgconfig model across the app
This commit is contained in:
parent
6485b6e1bb
commit
28a2456d69
12 changed files with 467 additions and 363 deletions
|
|
@ -71,7 +71,7 @@ def check_limits_and_config(db_session: Session, organization: Organization):
|
|||
)
|
||||
|
||||
# Check if the Organizations has AI enabled
|
||||
if org_config.config["AIConfig"]["enabled"] == False:
|
||||
if org_config.config["features"]["ai"]["enabled"] == False:
|
||||
raise HTTPException(
|
||||
status_code=403,
|
||||
detail="Organization has AI disabled",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue