jason810496 commented on code in PR #47208:
URL: https://github.com/apache/airflow/pull/47208#discussion_r1979386855
##########
airflow/api_fastapi/core_api/security.py:
##########
@@ -130,6 +131,27 @@ def callback():
return inner
+def requires_access_configuration(method: ResourceMethod) ->
Callable[[Request, BaseUser | None], None]:
+ def inner(
+ request: Request,
+ user: Annotated[BaseUser | None, Depends(get_user)] = None,
+ ) -> None:
+ section: str | None = request.query_params.get("section") or
request.path_params.get("section")
+
+ def callback():
+ return get_auth_manager().is_authorized_configuration(
+ method=method,
+ details=ConfigurationDetails(section=section),
+ user=user,
+ )
+
+ _requires_access(
Review Comment:
Thanks for the reminder, just resolved and rebased.
--
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]