Skip to content

Commit

Permalink
fix: Published Dashboard without charts don't show up for non admin u…
Browse files Browse the repository at this point in the history
…sers (#20638)
  • Loading branch information
diegomedina248 authored Jul 27, 2022
1 parent ab415fd commit 8b354b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/dashboards/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def apply(self, query: Query, value: Any) -> Query:

datasource_perm_query = (
db.session.query(Dashboard.id)
.join(Dashboard.slices)
.join(Dashboard.slices, isouter=True)
.filter(
and_(
Dashboard.published.is_(True),
Expand Down
2 changes: 1 addition & 1 deletion superset/sql_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ class InsertRLSState(str, Enum):

def has_table_query(token_list: TokenList) -> bool:
"""
Return if a stament has a query reading from a table.
Return if a statement has a query reading from a table.
>>> has_table_query(sqlparse.parse("COUNT(*)")[0])
False
Expand Down

0 comments on commit 8b354b4

Please sign in to comment.