From 338eb1a41e0243eff8d49850714bb52c9ea936c6 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Mon, 23 May 2011 10:54:04 +0200 Subject: [PATCH] SONAR-2457 Fix source shown on review even if user is not 'codeviewer' --- .../src/main/webapp/WEB-INF/app/views/reviews/_review.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e3364c011d0..b5f69900cbf 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 @@ -89,7 +89,7 @@ - <% if review.rule_failure && review.resource_line && review.rule_failure.snapshot %> + <% if review.rule_failure && review.resource_line && review.rule_failure.snapshot && has_role?(:codeviewer, review.project) %>
<%= snapshot_source_to_html(review.rule_failure.snapshot, {:line_range => (review.resource_line-5)..(review.resource_line+5), :highlighted_lines => [review.resource_line]}) -%>
-- 2.39.5