mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: RLS in virtual datasets (#36061)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user