mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: Published Dashboard without charts don't show up for non admin users (#20638)
This commit is contained in:
@@ -111,7 +111,7 @@ class DashboardAccessFilter(BaseFilter): # pylint: disable=too-few-public-metho
|
||||
|
||||
datasource_perm_query = (
|
||||
db.session.query(Dashboard.id)
|
||||
.join(Dashboard.slices)
|
||||
.join(Dashboard.slices, isouter=True)
|
||||
.filter(
|
||||
and_(
|
||||
Dashboard.published.is_(True),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user