]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6331 do not show overview for files
authorStas Vilchik <vilchiks@gmail.com>
Mon, 10 Aug 2015 15:21:26 +0000 (17:21 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 10 Aug 2015 15:21:26 +0000 (17:21 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb

index 63b7a4c763671496818b26c0d11c1f2759e501d2..bd71f5b95cf58ed6075b1d0027db09377ddede15 100644 (file)
@@ -27,9 +27,9 @@ class DashboardController < ApplicationController
 
   def index
     load_resource()
-    if @resource && !params[:did]
+    if @resource && @resource.display_dashboard? && !params[:did]
       overview_url = url_for({:controller => 'overview', :action => :index}) + '?id=' + url_encode(@resource.key)
-      redirect_to overview_url
+      return redirect_to overview_url
     end
     if !@resource || @resource.display_dashboard?
       redirect_if_bad_component()