async fn handle_sync_op_with_permissions<'future, A: Api<Error = ApiError>, Handle: FnOnce(ServerDatabase<CliBackend>, &'future A) -> F, F: Future<Output = HandlerResult<A>> + 'future>(
    session: HandlerSession<'_, CliBackend>,
    path: &str,
    request: &'future A,
    handler: Handle
) -> HandlerResult<A>