risingwave_meta::controller::utils

Function ensure_privileges_not_referred

source
pub async fn ensure_privileges_not_referred<C>(
    ids: Vec<PrivilegeId>,
    db: &C,
) -> MetaResult<()>
where C: ConnectionTrait,
Expand description

ensure_privileges_not_referred ensures that the privileges are not granted to any other users.