docs: def get_log_records_access(f):
      """Access to getLogRecords() controlled by settings.PUBLIC_LOG_RECORDS."""
  
      @functools.wraps(f)
      def wrapper(request, *args, **kwargs):
          if not django.conf.settings.PUBLIC_LOG_RECORDS:
              trusted(request)
          return f(request, *args, **kwargs)
  
      return wrapper