Skip to content

Commit

Permalink
Merge PR OCA#403 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by sbidoul
  • Loading branch information
OCA-git-bot committed Dec 14, 2023
2 parents 883c8fb + 155c710 commit bb9de3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fastapi_auth_jwt/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def __call__(
if not self.allow_unauthenticated or validator.partner_id_required:
_logger.info("Could not determine partner from JWT payload.")
raise HTTPException(status_code=HTTP_401_UNAUTHORIZED)
return env["res.partner"].with_user(uid).browse()
return env["res.partner"].with_user(uid).browse(partner_id)


Expand Down

0 comments on commit bb9de3d

Please sign in to comment.