[AIRFLOW-5490] Fix incorrect None comparison (#6109)
This commit is contained in:
Родитель
4f41fb1d1f
Коммит
65600048b5
|
@ -340,8 +340,8 @@ class AirflowSecurityManager(SecurityManager, LoggingMixin):
|
|||
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
|
||||
sqla_models.PermissionView.view_menu is None, # noqa pylint: disable=singleton-comparison
|
||||
))
|
||||
)
|
||||
# Since FAB doesn't define ON DELETE CASCADE on these tables, we need
|
||||
|
|
Загрузка…
Ссылка в новой задаче