From 69be75844504618e25ca63de50df724bc2fb9772 Mon Sep 17 00:00:00 2001 From: Madiwka Date: Wed, 8 Nov 2023 13:30:12 +0600 Subject: [PATCH] emergency bugfix --- app/apis/v1/route_user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/apis/v1/route_user.py b/app/apis/v1/route_user.py index 3b44d43..191f226 100644 --- a/app/apis/v1/route_user.py +++ b/app/apis/v1/route_user.py @@ -4,7 +4,7 @@ from sqlalchemy.orm import Session from fastapi import Depends from typing import List, Annotated from apis.v1.route_auth import get_current_user -from core.config import Settings +from core.config import settings from db.models.user import User from schemas.user import UserCreate, ShowUser, ShowDriver, DriverCreate from db.session import get_db @@ -27,7 +27,7 @@ def create_user( db: Session = Depends(get_db), current_user: User = Depends(get_current_user), ): - if user.Role not in Settings.ALLOWED_ROLES: + if user.Role not in settings.ALLOWED_ROLES: raise HTTPException( status_code=400, detail=f"Status {status} is not allowed. Allowed status are {settings.ALLOWED_TASK_STATUS}",