public String intercept()

in src/main/java/com/googlesource/gerrit/plugins/readonly/DisableCommandInterceptor.java [55:64]


  public String intercept(String in) {
    if (!state.isReadOnly()
        || allowPrefixes.stream().anyMatch(p -> in.startsWith(p))
        || allowPatterns.stream().anyMatch(p -> p.matcher(in).matches())) {
      return in;
    }

    log.warn("Disabling command: {}", in);
    return disableCommand;
  }