mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
feat: RLS for SQL Lab (#19999)
* feat: RLS for SQL Lab * Small fixes * Pass username to security manager * Update docstrings * Add tests * Remove type from docstring
This commit is contained in:
@@ -1406,7 +1406,10 @@ def test_insert_rls(
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
def get_rls_for_table(
|
||||
candidate: Token, database_id: int, default_schema: str
|
||||
candidate: Token,
|
||||
database_id: int,
|
||||
default_schema: str,
|
||||
username: Optional[str] = None,
|
||||
) -> Optional[TokenList]:
|
||||
"""
|
||||
Return the RLS ``condition`` if ``candidate`` matches ``table``.
|
||||
|
||||
Reference in New Issue
Block a user