code: def _current_user_override(self):
          
          try:
              # threadlocals is a module, not an actual thread locals object
              request = threadlocals.request()
              if request is None:
                  return False
              requesting_user = request.user
              if isinstance(requesting_user, AnonymousUser) or not requesting_user.is_authenticated:
                  return False
              can_view_anyway = requesting_user and (requesting_user.is_teacher or requesting_user.is_eighthoffice or requesting_user.is_eighth_admin)
          except (AttributeError, KeyError) as e:
              logger.error("Could not check teacher/eighth override: {}".format(e))
              can_view_anyway = False
          return can_view_anyway
docs: Return whether the currently logged in user is a teacher, and can view all of a student's
          information regardless of their privacy settings.