risingwave_meta::controller::utils

Function get_user_privilege

source
pub async fn get_user_privilege<C>(
    user_id: UserId,
    db: &C,
) -> MetaResult<Vec<PbGrantPrivilege>>
where C: ConnectionTrait,
Expand description

get_user_privilege returns the privileges of the given user.