From 14ed7d33d2e00daa0ade4146d4da46d74440a813 Mon Sep 17 00:00:00 2001 From: Dylan Chen Date: Wed, 25 Sep 2024 17:45:19 +0800 Subject: [PATCH] add has_schema_privilege check --- .../src/catalog/system_catalog/information_schema/schemata.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/catalog/system_catalog/information_schema/schemata.rs b/src/frontend/src/catalog/system_catalog/information_schema/schemata.rs index dad095084ef7..b9c5e08462af 100644 --- a/src/frontend/src/catalog/system_catalog/information_schema/schemata.rs +++ b/src/frontend/src/catalog/system_catalog/information_schema/schemata.rs @@ -29,6 +29,7 @@ use risingwave_frontend_macro::system_catalog; NULL FROM rw_catalog.rw_schemas s JOIN rw_catalog.rw_users u ON s.owner = u.id + WHERE has_schema_privilege(s.name, 'CREATE, USAGE') ORDER BY catalog_name, schema_name" )] #[derive(Fields)]