aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb
index 5c4d3ac44c7..6999b2e0515 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb
@@ -54,6 +54,7 @@ class UsersController < ApplicationController
user.external_identity = user.login
user.external_identity_provider = 'sonarqube'
user.user_local = true
+ user.is_root = false
default_group_name=java_facade.getSettings().getString('sonar.defaultGroup')
default_group=Group.find_by_name(default_group_name)
user.groups<<default_group if default_group