mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix: Security manager incorrect calls (#29884)
This commit is contained in:
committed by
GitHub
parent
bc6d2dba37
commit
d497dcad41
@@ -2274,6 +2274,6 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
|
||||
# otherwise the database should have been filtered out
|
||||
# in CsvToDatabaseForm
|
||||
schemas_allowed_processed = security_manager.get_schemas_accessible_by_user(
|
||||
database, schemas_allowed, True
|
||||
database, database.get_default_catalog(), schemas_allowed, True
|
||||
)
|
||||
return self.response(200, schemas=schemas_allowed_processed)
|
||||
|
||||
Reference in New Issue
Block a user