code: def user_to_request(handler):
      '''Add user to request if user logged in'''
      @wraps(handler)
      async def decorator(*args):
          request = _get_request(args)
          request[cfg.REQUEST_USER_KEY] = await get_cur_user(request)
          return await handler(*args)
      return decoratof user_to_request(handler):
      '''Add user to request if user logged in'''
      @wraps(handler)
      async def decorator(*args):
          request = _get_request(args)
          request[cfg.REQUEST_USER_KEY] = await get_cur_user(request)
          return await handler(*args)
      return decorator
docs: Add user to request if user logged in