Full Working static multi tenant
This commit is contained in:
@@ -109,9 +109,6 @@ fastapi_users = FastAPIUsers[User, uuid.UUID](
|
||||
get_current_user = fastapi_users.current_user(active=True)
|
||||
get_current_superuser = fastapi_users.current_user(active=True, superuser=True)
|
||||
|
||||
def get_current_user_and_firm(user=Depends(get_current_user)):
|
||||
return user
|
||||
|
||||
|
||||
def get_auth_router():
|
||||
return fastapi_users.get_auth_router(auth_backend)
|
||||
|
||||
Reference in New Issue
Block a user