mik-laj commented on a change in pull request #15295:
URL: https://github.com/apache/airflow/pull/15295#discussion_r611215495



##########
File path: airflow/api_connexion/security.py
##########
@@ -42,6 +42,7 @@ def requires_access(permissions: Optional[Sequence[Tuple[str, 
str]]] = None) ->
     def requires_access_decorator(func: T):
         @wraps(func)
         def decorated(*args, **kwargs):
+            g.login_from_api = True

Review comment:
       Can you add a one-line comment explaining why this is needed? The 
relationship between this decorator and the `DefaultSessionInterface` class is 
not obvious.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to