From e4f14ed8838a6c9ec3fa4fd41682f083ba0c28ae Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 8 Jul 2026 10:05:11 +0000 Subject: [PATCH] =?UTF-8?q?Type=20the=20requester-email=20extraction=20cle?= =?UTF-8?q?anly=20=F0=9F=9F=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- backend/app/documents/router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/documents/router.py b/backend/app/documents/router.py index 7d3eea4db..f35974296 100644 --- a/backend/app/documents/router.py +++ b/backend/app/documents/router.py @@ -49,9 +49,9 @@ def get_requesting_user_email(user: Any = Depends(validate_jwt_token)) -> str: ADR-0059: the route resolves the user (JWT ``dbId`` -> ``UserModel``) rather than only gating the token, and threads the email into the job.""" - email = getattr(user, "email", None) + email: Any = getattr(user, "email", None) if email is None and isinstance(user, dict): - email = user.get("email") + email = cast(dict[str, Any], user).get("email") if not email: raise HTTPException( status_code=400,