]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5542 Force user authentication is not taking into account by Java Web Service
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 27 Aug 2014 16:16:01 +0000 (18:16 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Wed, 27 Aug 2014 16:16:09 +0000 (18:16 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/java_ws_controller.rb

index b547f08dacf464f4c03d85894c1d91ff1599ce2c..a30a743e98a7535f99a476d4ef6a4c41757ddf37 100644 (file)
@@ -21,7 +21,7 @@
 # since 4.2
 class Api::JavaWsController < Api::ApiController
 
-  skip_before_filter :check_authentication, :except => 'skip_authentication_check_for_batch_index'
+  before_filter :check_authentication, :unless => ['skip_authentication_check_for_batch_index']
 
   def index
     ws_request = Java::OrgSonarServerWs::ServletRequest.new(servlet_request, params.to_java)
@@ -39,7 +39,6 @@ class Api::JavaWsController < Api::ApiController
     redirect_to :action => 'index', :wspath => 'api/webservices', :wsaction => 'list'
   end
 
-  private
 
   def skip_authentication_check_for_batch_index
     params[:wspath]=='batch' && params[:wsaction]=='index'