o-nikolas commented on code in PR #36619: URL: https://github.com/apache/airflow/pull/36619#discussion_r1445145049
########## airflow/providers/amazon/aws/auth_manager/aws_auth_manager.py: ########## @@ -163,7 +179,7 @@ def is_authorized_view( access_view: AccessView, user: BaseUser | None = None, ) -> bool: - return self.avp_facade.is_authorized( + return self.is_logged_in() and self.avp_facade.is_authorized( Review Comment: instead of adding the call to `is_logged_in` before all the calls to `is_authorized` why not add the logged in check inside `is_authorized`? -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org