Skip to content

Commit

Permalink
add has_schema_privilege check
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Sep 25, 2024
1 parent 6f4c08b commit 14ed7d3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 14ed7d3

Please sign in to comment.