From 57a71dee29f286c7d840fdfcc0b2d98c07f29034 Mon Sep 17 00:00:00 2001 From: James Moger Date: Sun, 9 Mar 2014 13:04:59 -0400 Subject: [PATCH] Mirrors and read-only repositories must disable review function --- src/main/java/com/gitblit/wicket/pages/TicketPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.5