aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb
index 63b7a4c7636..bd71f5b95cf 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb
@@ -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()