Function mz_adapter::rbac::generate_required_privileges
source · fn generate_required_privileges(
catalog: &impl SessionCatalog,
plan: &Plan,
target_cluster_id: Option<ClusterId>,
resolved_ids: &ResolvedIds,
role_id: RoleId
) -> Vec<(SystemObjectId, AclMode, RoleId)>
Expand description
Generates the privileges required to execute a given plan.
The result of this function is a set of tuples of the form (What object the privilege is on, What privilege is required, Who must possess the privilege).