Full Working static multi tenant
This commit is contained in:
1 parent
50fdf22afc
commit
59cc709ed5
24 files changed
+327
-244
No files matched your search
@@ -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