pub async fn permissions( ctx: &AppCtx, ref_id: Uuid, ) -> Result<Permissions, AppError>
Gets the permissions allowed for a ref.