mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
fix: SQLAlchemy coercing subquery warning on RLS (#21257)
This commit is contained in:
parent
034ee1c3c1
commit
6223042050
@ -1467,7 +1467,6 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
|
||||
RowLevelSecurityFilter.filter_type == RowLevelSecurityFilterType.REGULAR
|
||||
)
|
||||
.filter(RLSFilterRoles.c.role_id.in_(user_roles))
|
||||
.subquery()
|
||||
)
|
||||
base_filter_roles = (
|
||||
self.get_session()
|
||||
@ -1477,13 +1476,11 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
|
||||
RowLevelSecurityFilter.filter_type == RowLevelSecurityFilterType.BASE
|
||||
)
|
||||
.filter(RLSFilterRoles.c.role_id.in_(user_roles))
|
||||
.subquery()
|
||||
)
|
||||
filter_tables = (
|
||||
self.get_session()
|
||||
.query(RLSFilterTables.c.rls_filter_id)
|
||||
.filter(RLSFilterTables.c.table_id == table.id)
|
||||
.subquery()
|
||||
)
|
||||
query = (
|
||||
self.get_session()
|
||||
|
Loading…
Reference in New Issue
Block a user