]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4187 Remove the hack which leads do display the 'History' page on views even...
authorJulien Lancelot <julien.lancelot@gmail.com>
Tue, 13 Aug 2013 10:24:36 +0000 (12:24 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 13 Aug 2013 10:24:36 +0000 (12:24 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb

index ed99ec19552ea5a9bc7eda143f8fdb3ef606ae51..ff9e2e0b0836e5b774ba9a4d649e246980f03f72 100644 (file)
@@ -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