fix: Security manager incorrect calls (#29884)

This commit is contained in:
Michael S. Molina
2024-08-23 11:39:45 -03:00
committed by GitHub
parent bc6d2dba37
commit d497dcad41
10 changed files with 162 additions and 93 deletions

View File

@@ -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)