code: def http_basic_auth_group_member_required(groups):
      
  
      if isinstance(groups, six.string_types):
          # Check user is in a group
          return auth.set_authentication_predicate(http_basic_auth_check_user, [auth.user_in_group, groups])
      else:
          # Check user is in many group
          return auth.set_authentication_predicate(http_basic_auth_check_user, [auth.user_in_any_group, groups])
docs: Decorator. Use it to specify a RPC method is available only to logged users with given permissions