pub async fn is_authorized(
ctx: &AppCtx,
ref_id: Uuid,
level: PermissionLevel,
) -> Result<bool, AppError>
Expand description
Is the user authorized to access a ref at a given permission level?
The result is an error if the ref does not exist.