diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-10-05 09:27:26 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-10-12 12:24:30 +0200 |
commit | ec8ace082da11717e425fe556b428c6828178a27 (patch) | |
tree | 08105d50399a0eb1aaf5023e4fa9aafadd2697fb /server/sonar-web/src/main/webapp | |
parent | a59c38e2db7d71bad8370bce65706f2bf91a5b62 (diff) | |
download | sonarqube-ec8ace082da11717e425fe556b428c6828178a27.tar.gz sonarqube-ec8ace082da11717e425fe556b428c6828178a27.zip |
SONAR-8155 suppport USERS.IS_ROOT in ruby code
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/controllers/users_controller.rb | 1 |
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 |