mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
chore(security): Updating assert logic (#10034)
* chore(security): Updating assert logic * Deprecating rejected_tables Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -286,3 +286,12 @@ class QueryContext:
|
||||
"stacktrace": stacktrace,
|
||||
"rowcount": len(df.index),
|
||||
}
|
||||
|
||||
def raise_for_access(self) -> None:
|
||||
"""
|
||||
Raise an exception if the user cannot access the resource.
|
||||
|
||||
:raises SupersetSecurityException: If the user cannot access the resource
|
||||
"""
|
||||
|
||||
security_manager.raise_for_access(query_context=self)
|
||||
|
||||
Reference in New Issue
Block a user