pierrejeambrun commented on code in PR #47485:
URL: https://github.com/apache/airflow/pull/47485#discussion_r1986937551


##########
airflow/api_fastapi/core_api/routes/ui/assets.py:
##########
@@ -17,30 +17,36 @@
 
 from __future__ import annotations
 
-from fastapi import HTTPException, Request, status
+from fastapi import Depends, HTTPException, Request, status
 from sqlalchemy import and_, func, select
 
 from airflow.api_fastapi.common.db.common import SessionDep
 from airflow.api_fastapi.common.router import AirflowRouter
+from airflow.api_fastapi.core_api.security import requires_access_asset, 
requires_access_dag
 from airflow.models import DagModel
 from airflow.models.asset import AssetDagRunQueue, AssetEvent, AssetModel, 
DagScheduleAssetReference
 
 assets_router = AirflowRouter(tags=["Asset"])
 
 
-@assets_router.get("/next_run_assets/{dag_id}")
+@assets_router.get(
+    "/next_run_assets/{dag_id}",
+    dependencies=[Depends(requires_access_asset(method="GET")), 
Depends(requires_access_dag(method="GET"))],
+)
 def next_run_assets(
-    dag_id: str,

Review Comment:
   and this should stay, sorry that was meant to be for the security dependency.



-- 
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]

Reply via email to