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