Adapt to upstream changes

ProjectControl#canReadCommit now takes a Repository, not a RevWalk.

Change-Id: I5a0c845f6de25bd4d2a5c67df738589055d097d6
diff --git a/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java b/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java
index ebae46c..89df7a0 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/xdocs/XDocServlet.java
@@ -334,7 +334,7 @@
       throws ResourceNotFoundException, IOException {
     try (RevWalk rw = new RevWalk(repo)) {
       RevCommit commit = rw.parseCommit(revId);
-      if (!projectControl.canReadCommit(db.get(), rw, commit)) {
+      if (!projectControl.canReadCommit(db.get(), repo, commit)) {
         throw new ResourceNotFoundException();
       }
     }