code: def http_basic_auth_login_required(func=None):
      
  
      wrapper = auth.set_authentication_predicate(http_basic_auth_check_user, [auth.user_is_authenticated])
  
      # If @http_basic_auth_login_required() is used (with parenthesis)
      if func is None:
          return wrapper
  
      # If @http_basic_auth_login_required is used without parenthesis
      return wrapper(func)
docs: Decorator. Use it to specify a RPC method is available only to logged users