]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3473 Improve the parameter sonar.forceAuthentication
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 11 May 2012 10:03:01 +0000 (12:03 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 11 May 2012 10:23:34 +0000 (12:23 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/application_controller.rb

index 47b683e68b1783c8b1d827b63cd2d7e6caf99bdb..ba6da3894f424decc3baab97492cde7b650c6094 100644 (file)
@@ -94,9 +94,7 @@ class ApplicationController < ActionController::Base
   end
 
   def check_authentication
-    if current_user.nil? && Property.value('sonar.forceAuthentication')=='true'
-      access_denied
-    end
+    access_denied if !current_user && java_facade.getConfigurationValue('sonar.forceAuthentication')=='true'
   end
 
   # i18n