summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-09 09:30:23 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2013-12-09 09:30:37 +0100
commitb363e78d1482de591eb8999a11dae68db32ed3d4 (patch)
tree3bdf092fe9937ebfd866fa5b76ac326f4f8b20e3
parentb46df68610a305e45b5a3688789adc513b0d5816 (diff)
downloadsonarqube-b363e78d1482de591eb8999a11dae68db32ed3d4.tar.gz
sonarqube-b363e78d1482de591eb8999a11dae68db32ed3d4.zip
SONAR-4773 Do not display resource viewer when drilling down on technical debt measure
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb
index a245d504fa9..73f57e5c1e8 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb
@@ -61,7 +61,7 @@ class DrilldownController < ApplicationController
@highlighted_resource=@resource
end
- @display_viewers=display_metric_viewers?(@highlighted_resource||@resource, @highlighted_metric.key)
+ @display_viewers = display_metric_viewers?(@highlighted_resource || @resource, @highlighted_metric.key)
end
def issues
@@ -176,7 +176,7 @@ class DrilldownController < ApplicationController
java_facade.getResourceTabsForMetric(resource.scope, resource.qualifier, resource.language, resource.last_snapshot.metric_keys.to_java(:string), metric_key).each do |tab|
tab.getUserRoles().each do |role|
if has_role?(role, resource)
- return true
+ return resource.file?
end
end
end