dstandish commented on code in PR #32616:
URL: https://github.com/apache/airflow/pull/32616#discussion_r1264071242
##########
airflow/www/utils.py:
##########
@@ -926,6 +926,6 @@ def should_show(self, securitymanager: SecurityManager) ->
bool:
# Unable to obtain user role - default to not showing
return False
- if not user_roles.intersection(set(self.roles)):
+ if user_roles.isdisjoint(self.roles):
Review Comment:
note on removal of `set`: roles doesn't need to be set to pass to isdisjoint
--
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]