fix: RLS in virtual datasets (#36061)

This commit is contained in:
Beto Dealmeida
2025-11-14 14:21:09 -05:00
committed by GitHub
parent 9ef87e75d5
commit f3e620cd0f
8 changed files with 280 additions and 23 deletions

View File

@@ -2346,10 +2346,9 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
query, template_params
)
tables = {
Table(
table_.table,
table_.schema or default_schema,
table_.catalog or query.catalog or default_catalog,
table_.qualify(
catalog=query.catalog or default_catalog,
schema=default_schema,
)
for table_ in process_jinja_sql(
query.sql, database, template_params
@@ -2357,9 +2356,7 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
}
elif table:
# Make sure table has the default catalog, if not specified.
tables = {
Table(table.table, table.schema, table.catalog or default_catalog)
}
tables = {table.qualify(catalog=default_catalog)}
denied = set()