sjyangkevin commented on code in PR #54308:
URL: https://github.com/apache/airflow/pull/54308#discussion_r2275264545
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/hitl.py:
##########
@@ -119,6 +119,11 @@ def _update_hitl_detail(
"and is not allowed to write again.",
)
+ if hitl_detail_model.respondents and user.get_name() not in
hitl_detail_model.respondents:
Review Comment:
thanks for the feedback. In this case, I think update the code to the
following using `get_id` should work :thinking:
```python
if hitl_detail_model.respondents and user.get_id() not in
hitl_detail_model.respondents:
raise HTTPException(
status.HTTP_403_FORBIDDEN, f"User={user.get_id()} is not a
respondent for the task."
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]