]> source.dussan.org Git - gitblit.git/commitdiff
Mirrors and read-only repositories must disable review function
authorJames Moger <james.moger@gitblit.com>
Sun, 9 Mar 2014 17:04:59 +0000 (13:04 -0400)
committerJames Moger <james.moger@gitblit.com>
Sun, 9 Mar 2014 17:04:59 +0000 (13:04 -0400)
src/main/java/com/gitblit/wicket/pages/TicketPage.java

index 1a1686d397ac9fadd08561793a9196e1cb0a9c7f..569818fe9bed93792de63af703d3928bd099d681 100644 (file)
@@ -1069,7 +1069,7 @@ public class TicketPage extends TicketBasePage {
                panel.add(reviewsView);\r
 \r
 \r
-               if (ticket.isOpen() && user.canReviewPatchset(repository)) {\r
+               if (ticket.isOpen() && user.canReviewPatchset(repository) && app().tickets().isAcceptingTicketUpdates(repository)) {\r
                        // can only review open tickets\r
                        Review myReview = null;\r
                        for (Change change : ticket.getReviews(currentPatchset)) {\r