소스 검색

fix(mcp): current_user not being set in MCP requests (#25393)

tags/1.9.0
Novice 1 개월 전
부모
커밋
e180c19cca
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    3
      api/extensions/ext_login.py

+ 1
- 3
api/extensions/ext_login.py 파일 보기

@@ -86,9 +86,7 @@ def load_user_from_request(request_from_flask_login):
if not app_mcp_server:
raise NotFound("App MCP server not found.")
end_user = (
db.session.query(EndUser)
.where(EndUser.external_user_id == app_mcp_server.id, EndUser.type == "mcp")
.first()
db.session.query(EndUser).where(EndUser.session_id == app_mcp_server.id, EndUser.type == "mcp").first()
)
if not end_user:
raise NotFound("End user not found.")

Loading…
취소
저장