]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6125 Server error when a user listed in sonar.security.localUsers does not...
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 29 Jan 2015 13:15:31 +0000 (14:15 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 29 Jan 2015 13:15:31 +0000 (14:15 +0100)
server/sonar-web/src/main/webapp/WEB-INF/lib/need_authentication.rb

index 3e49975583adf7bfb802b9e28139c4b5a7d15c6e..22136b9c93b0a9d41321f9c5be9458d36ad714cf 100644 (file)
@@ -64,10 +64,6 @@ class PluginRealm
     result = nil
     if !username.blank? && !password.blank?
       user = User.find_active_by_login(username)
-      # SONAR-4950 Use a transaction to prevent multiple insertion of same groups
-      User.transaction do
-        user.save(false)
-      end
       result = user if user && user.authenticated?(password)
     end
     result