mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
fix: Consider default catalog when getting tables and view lists (#33916)
This commit is contained in:
@@ -54,6 +54,7 @@ class TablesDatabaseCommand(BaseCommand):
|
||||
|
||||
def run(self) -> dict[str, Any]:
|
||||
self.validate()
|
||||
self._catalog_name = self._catalog_name or self._model.get_default_catalog()
|
||||
try:
|
||||
tables = security_manager.get_datasources_accessible_by_user(
|
||||
database=self._model,
|
||||
|
||||
Reference in New Issue
Block a user