summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-09 13:04:59 -0400
committerJames Moger <james.moger@gitblit.com>2014-03-09 13:04:59 -0400
commit57a71dee29f286c7d840fdfcc0b2d98c07f29034 (patch)
tree076188465cfd7a67cebd765ffa79db618133c306 /src/main/java
parent328346fbed4c620cd0ad675ab03551d9790fb3e3 (diff)
downloadgitblit-57a71dee29f286c7d840fdfcc0b2d98c07f29034.tar.gz
gitblit-57a71dee29f286c7d840fdfcc0b2d98c07f29034.zip
Mirrors and read-only repositories must disable review function
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/TicketPage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/TicketPage.java b/src/main/java/com/gitblit/wicket/pages/TicketPage.java
index 1a1686d3..569818fe 100644
--- a/src/main/java/com/gitblit/wicket/pages/TicketPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/TicketPage.java
@@ -1069,7 +1069,7 @@ public class TicketPage extends TicketBasePage {
panel.add(reviewsView);
- if (ticket.isOpen() && user.canReviewPatchset(repository)) {
+ if (ticket.isOpen() && user.canReviewPatchset(repository) && app().tickets().isAcceptingTicketUpdates(repository)) {
// can only review open tickets
Review myReview = null;
for (Change change : ticket.getReviews(currentPatchset)) {