fat-catTW commented on code in PR #72715:
URL: https://github.com/apache/airflow/pull/72715#discussion_r4371808249


##########
airflow-core/src/airflow/api_fastapi/core_api/security.py:
##########
@@ -228,6 +228,30 @@ def inner(
     return inner
 
 
+def requires_access_dag_bundle(method: ResourceMethod) -> Callable[[str, 
BaseUser, Session], None]:

Review Comment:
   I reviewed both helpers, and I think the new dependency already follows the 
similar authorization pattern. 
   It resolves the bundle's owning team and delegates the access check through 
`is_authorized_dag` and `_requires_access`.
   
   I only added a docstring to clarify the bundle's authorization scope. 
   Please let me know if you had a specific structural change in mind.



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