]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2539 Should not be possible to modify closed review
authorEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 28 Jul 2011 08:18:41 +0000 (12:18 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 28 Jul 2011 08:34:46 +0000 (12:34 +0400)
sonar-server/src/main/webapp/WEB-INF/app/views/reviews/_review.html.erb

index 55ff8a79433fb549ee7226eedd0f13b7354f4ea8..517ca7dae22c4189a691fef08a4dfcd289917f58 100644 (file)
           <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") -%>