global profile comes from server now only

This commit is contained in:
Priec
2026-08-17 11:05:16 +02:00
parent 9b1e592ecd
commit efd9e2481b
9 changed files with 33 additions and 11 deletions

View File

@@ -73,7 +73,9 @@ pub(crate) async fn load_page(
// to — see `crate::pages::table_scope`.
let catalog_tables = definitions
.get_table_catalog(
authenticated_request(headers, GetTableCatalogRequest { profile_name: None })
authenticated_request(headers, GetTableCatalogRequest {
profile_name: crate::pages::GLOBAL_SCOPE.to_string(),
})
.map_err(|_| LoadError::Unauthenticated)?,
)
.await

View File

@@ -51,7 +51,9 @@ pub(crate) async fn load_admin_page(
let global_tables = table_scope::global_tables(
&definitions
.get_table_catalog(
authenticated_request(headers, GetTableCatalogRequest { profile_name: None })
authenticated_request(headers, GetTableCatalogRequest {
profile_name: crate::pages::GLOBAL_SCOPE.to_string(),
})
.map_err(authentication_error)?,
)
.await

View File

@@ -121,7 +121,9 @@ pub(crate) async fn load_page(
// had just listed.
let catalog_tables = definitions
.get_table_catalog(
authenticated_request(headers, GetTableCatalogRequest { profile_name: None })
authenticated_request(headers, GetTableCatalogRequest {
profile_name: crate::pages::GLOBAL_SCOPE.to_string(),
})
.map_err(|_| LoadError::Unauthenticated)?,
)
.await

View File

@@ -75,7 +75,9 @@ pub(crate) async fn load_catalog(
let global = table_scope::global_tables(
&definitions
.get_table_catalog(
authenticated_request(headers, GetTableCatalogRequest { profile_name: None })
authenticated_request(headers, GetTableCatalogRequest {
profile_name: crate::pages::GLOBAL_SCOPE.to_string(),
})
.map_err(|_| LoadError::Unauthenticated)?,
)
.await