From 46b8d93f95920588e0a6d8c1befd3dc2a988def4 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 13 Aug 2013 12:24:36 +0200 Subject: [PATCH] SONAR-4187 Remove the hack which leads do display the 'History' page on views even if the property 'modifiable_history' is not defined on views --- .../main/webapp/WEB-INF/app/controllers/project_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb index ed99ec19552..ff9e2e0b083 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb @@ -179,8 +179,7 @@ class ProjectController < ApplicationController def history @project = get_current_project(params[:id]) - # NOTE: we keep "@project.view? || @project.subview?" in the test for backward compatibility with the Views plugin - unless java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'modifiable_history') || @project.view? + unless java_facade.getResourceTypeBooleanProperty(@project.qualifier, 'modifiable_history') redirect_to :action => 'index', :id => params[:id] end -- 2.39.5