summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-07-28 12:18:41 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-07-28 12:34:46 +0400
commit704737f83a84ede82a98b9fc5df71ff065622fd5 (patch)
tree94e2f440fe996a5c55638afa967a615b057e1d07
parent5d4a6f543838403f26e9f18ee0ead44398ffec0f (diff)
downloadsonarqube-704737f83a84ede82a98b9fc5df71ff065622fd5.tar.gz
sonarqube-704737f83a84ede82a98b9fc5df71ff065622fd5.zip
SONAR-2539 Should not be possible to modify closed review
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_review.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_review.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_review.html.erb
index 55ff8a79433..517ca7dae22 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_review.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_review.html.erb
@@ -129,7 +129,7 @@
<div class="discussionComment">
<h4>
<%= image_tag("reviews/comment.png") -%> &nbsp;<b><%= comment.user.name -%></b> (<%= distance_of_time_in_words_to_now(comment.created_at) -%>)
- <% if is_last_comment && current_user %>
+ <% if is_last_comment && current_user && !review.isClosed? %>
<span class="actions" id="editActions">
&nbsp;&nbsp;
<%= image_tag("sep12.png") -%>