mik-laj commented on a change in pull request #6109: [AIRFLOW-5490] Fix 
incorrect None comparison
URL: https://github.com/apache/airflow/pull/6109#discussion_r324482337
 
 

 ##########
 File path: airflow/www/security.py
 ##########
 @@ -340,8 +340,8 @@ def clean_perms(self):
         pvms = (
             sesh.query(sqla_models.PermissionView)
             .filter(or_(
-                sqla_models.PermissionView.permission == None,  # noqa pylint: 
disable=singleton-comparison
-                sqla_models.PermissionView.view_menu == None,  # noqa pylint: 
disable=singleton-comparison
+                sqla_models.PermissionView.permission is None,  # noqa pylint: 
disable=singleton-comparison
 
 Review comment:
   Can you complete the tests to prevent regression?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to