commit | fa0a581fe76cb6adcf796052fe54da1a996bfcc5 | [log] [tgz] |
---|---|---|
author | Patrick Hiesel <hiesel@google.com> | Thu Jan 18 15:42:25 2018 +0100 |
committer | Patrick Hiesel <hiesel@google.com> | Thu Jan 18 15:42:25 2018 +0100 |
tree | b9c1adc2a34776b796bcc9598275d838e209eb32 | |
parent | 32f7c91a3d905d891b7bec9d44bf274718351d5e [diff] |
Check explicitly if project state permits read Change-Id: I8bd880b02897b1a4efb36ad430e70465b924be68
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java index 7128329..45071bc 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java
@@ -260,6 +260,9 @@ if (projectState == null) { throw new NoSuchProjectException(project); } + if (!projectState.statePermitsRead()) { + return false; + } if (!shouldReplicate(projectState, userProvider.get())) { return false; }