restore empty global catalog handling
This commit is contained in:
@@ -76,7 +76,7 @@ pub(crate) async fn load_page(
|
||||
let catalog_tables = definitions
|
||||
.get_table_catalog(
|
||||
authenticated_request(headers, GetTableCatalogRequest {
|
||||
profile_name: shared_profile.clone(),
|
||||
profile_name: None,
|
||||
})
|
||||
.map_err(|_| LoadError::Unauthenticated)?,
|
||||
)
|
||||
|
||||
@@ -54,7 +54,7 @@ pub(crate) async fn load_admin_page(
|
||||
&definitions
|
||||
.get_table_catalog(
|
||||
authenticated_request(headers, GetTableCatalogRequest {
|
||||
profile_name: shared_profile.clone(),
|
||||
profile_name: None,
|
||||
})
|
||||
.map_err(authentication_error)?,
|
||||
)
|
||||
|
||||
@@ -125,7 +125,7 @@ pub(crate) async fn load_page(
|
||||
let catalog_tables = definitions
|
||||
.get_table_catalog(
|
||||
authenticated_request(headers, GetTableCatalogRequest {
|
||||
profile_name: shared_profile.clone(),
|
||||
profile_name: None,
|
||||
})
|
||||
.map_err(|_| LoadError::Unauthenticated)?,
|
||||
)
|
||||
|
||||
@@ -83,7 +83,7 @@ pub(crate) async fn load_catalog(
|
||||
&definitions
|
||||
.get_table_catalog(
|
||||
authenticated_request(headers, GetTableCatalogRequest {
|
||||
profile_name: shared_profile.clone(),
|
||||
profile_name: None,
|
||||
})
|
||||
.map_err(|_| LoadError::Unauthenticated)?,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user