Skip to content

Commit

Permalink
Update superset/databases/filters.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yongjie Zhao <yongjiezhao@apache.org>
  • Loading branch information
Victor Arbues and zhaoyongjie committed Feb 9, 2022
1 parent b2b230c commit 24455bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/databases/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def apply(self, query: Query, value: Any) -> Query:
return query.filter(
or_(
self.model.perm.in_(database_perms),
self.model.database_name.in_(schema_access_databases),
self.model.database_name.in_(datasource_access_databases),
self.model.database_name.in_([*schema_access_databases, *datasource_access_databases]),
)
)

0 comments on commit 24455bf

Please sign in to comment.