code: def is_http_request_sender(self):
          
          try:
              # threadlocals is a module, not an actual thread locals object
              request = threadlocals.request()
              if request and request.user and request.user.is_authenticated:
                  requesting_user_id = request.user.id
                  return str(requesting_user_id) == str(self.user.id)
          except (AttributeError, KeyError) as e:
              logger.error("Could not check request sender: {}".format(e))
              return False
  
          return False
docs: Checks if a user the HTTP request sender (accessing own info)
  
          Used primarily to load private personal information from the
          cache. (A student should see all info on his or her own profile
          regardless of how the permissions are set.)
  
          Returns:
              Boolean