amitmiran137 commented on a change in pull request #12547:
URL: https://github.com/apache/superset/pull/12547#discussion_r558808684



##########
File path: superset/security/manager.py
##########
@@ -592,10 +592,8 @@ def clean_perms(self) -> None:
         sesh = self.get_session
         pvms = sesh.query(PermissionView).filter(
             or_(
-                PermissionView.permission  # pylint: 
disable=singleton-comparison
-                == None,
-                PermissionView.view_menu  # pylint: 
disable=singleton-comparison
-                == None,
+                PermissionView.permission is None,
+                PermissionView.view_menu is None,

Review comment:
       yeah I wanted to see Dialects supports this. 




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to