Lee-W commented on code in PR #47631:
URL: https://github.com/apache/airflow/pull/47631#discussion_r1989609275
##########
airflow/api_fastapi/core_api/routes/ui/structure.py:
##########
@@ -36,6 +38,10 @@
@structure_router.get(
"/structure_data",
responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND]),
+ dependencies=[
+ Depends(requires_access_dag("GET")),
Review Comment:
I guess what you mean is `depends(requires_access_dag("GET",
DagAccessEntity.TASK_INSTANCE))`?
Looking into the logic, I'm unsure I understand why we need this permission.
🤔 but I guess I missed some of the context from the UI end, so I just added it
as well. Thanks!
--
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]