Function mz_sql::rbac::check_plan

source ยท
pub fn check_plan(
    catalog: &impl SessionCatalog,
    active_conns: impl FnOnce(u32) -> Option<RoleId>,
    session: &dyn SessionMetadata,
    plan: &Plan,
    target_cluster_id: Option<ClusterId>,
    resolved_ids: &ResolvedIds,
) -> Result<(), UnauthorizedError>
Expand description

Checks if a session is authorized to execute a plan. If not, an error is returned.