public static void removePrivilegeGrantOption(
      PartialPath path, PrivilegeType priv, List<PathPrivilege> privilegeList) {
    for (PathPrivilege pathPri : privilegeList) {
      if (path.matchFullPath(pathPri.getPath())) {
        pathPri.revokeGrantOpt(priv);
      }
    }
  }
Remove privilege grant option

@param path series path
@param priv privilege type
@param privilegeList privileges in List structure of user or role
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java