WicketUtils.setCssClass(votersCount, "badge badge-info");\r
}\r
add(votersCount);\r
- if (user.isAuthenticated) {\r
+ if (user.isAuthenticated && app().tickets().isAcceptingTicketUpdates(repository)) {\r
Model<String> model;\r
if (ticket.isVoter(user.username)) {\r
model = Model.of(getString("gb.removeVote"));\r
WicketUtils.setCssClass(watchersCount, "badge badge-info");\r
}\r
add(watchersCount);\r
- if (user.isAuthenticated) {\r
+ if (user.isAuthenticated && app().tickets().isAcceptingTicketUpdates(repository)) {\r
Model<String> model;\r
if (ticket.isWatching(user.username)) {\r
model = Model.of(getString("gb.stopWatching"));\r