Переглянути джерело

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

tags/1.9.0
Novice 1 місяць тому
джерело
коміт
e180c19cca
Аккаунт користувача з таким Email не знайдено
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.")

Завантаження…
Відмінити
Зберегти