code: def _is_logged_in_with_confirmed_email(user_manager):
      
      # User must be logged in
      if user_manager.call_or_get(current_user.is_authenticated):
          # Is unconfirmed email allowed for this view by @allow_unconfirmed_email?
          unconfirmed_email_allowed = \
              getattr(g, '_flask_user_allow_unconfirmed_email', False)
          
          # unconfirmed_email_allowed must be True or
          # User must have at least one confirmed email address
          if unconfirmed_email_allowed or user_manager.db_manager.user_has_confirmed_email(current_user):
              return True
  
      return False
docs: | Returns True if user is logged in and has a confirmed email address.
      | Returns False otherwise.