Function mz_sql::rbac::check_usage
source ยท pub fn check_usage(
catalog: &impl SessionCatalog,
session: &dyn SessionMetadata,
resolved_ids: &ResolvedIds,
item_types: &BTreeSet<CatalogItemType>,
) -> Result<(), UnauthorizedError>
Expand description
Checks if a session
is authorized to use resolved_ids
. If not, an error is returned.