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.
pub async fn get_user_privilege<C>(
user_id: UserId,
db: &C,
) -> MetaResult<Vec<PbGrantPrivilege>>where
C: ConnectionTrait,
get_user_privilege
returns the privileges of the given user.