diff --git a/backend/open_webui/routers/auths.py b/backend/open_webui/routers/auths.py index d2559d6..54eb5b8 100644 --- a/backend/open_webui/routers/auths.py +++ b/backend/open_webui/routers/auths.py @@ -112,6 +112,7 @@ async def get_session_user( "role": user.role, "profile_image_url": user.profile_image_url, "permissions": user.permissions, + "subscription": user.subscription, } @@ -401,7 +402,8 @@ async def signin(request: Request, response: Response, form_data: SigninForm): "name": user.name, "role": user.role, "profile_image_url": user.profile_image_url, - "permissions": user_permissions, + "permissions": user.permissions, + "subscription": user.subscription, } else: raise HTTPException(400, detail=ERROR_MESSAGES.INVALID_CRED)