diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-09-29 14:43:43 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-10-12 10:48:47 +0200 |
commit | 4a4cf450893ad82d03460e2de1036c9f03ae1fc1 (patch) | |
tree | 24e32519ad466fc3d773c38d4e8d6454c174bf5d /sonar-core | |
parent | 82a14b1821cb71d1e51dd493cef9dae586bed24c (diff) | |
download | sonarqube-4a4cf450893ad82d03460e2de1036c9f03ae1fc1.tar.gz sonarqube-4a4cf450893ad82d03460e2de1036c9f03ae1fc1.zip |
SONAR-8151 support anyoneCanCreate in /api/organizations/create
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java index a91cbb8b361..d4051edd6f3 100644 --- a/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java +++ b/sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java @@ -48,8 +48,7 @@ public class CorePropertyDefinitions { private static final String TIMEMACHINE_DEFAULT_PERIOD_5 = ""; private static final String CATEGORY_ORGANIZATIONS = "organizations"; - private static final String ORGANIZATIONS_ANYONE_CAN_CREATE = "sonar.organizations.anyoneCanCreate"; - private static final boolean ORGANIZATIONS_ANYONE_CAN_CREATE_DEFAULT_VALUE = false; + public static final String ORGANIZATIONS_ANYONE_CAN_CREATE = "sonar.organizations.anyoneCanCreate"; private CorePropertyDefinitions() { // only static stuff @@ -290,7 +289,7 @@ public class CorePropertyDefinitions { // ORGANIZATIONS PropertyDefinition.builder(ORGANIZATIONS_ANYONE_CAN_CREATE) .name("Allow any authenticated user to create organizations") - .defaultValue(Boolean.toString(ORGANIZATIONS_ANYONE_CAN_CREATE_DEFAULT_VALUE)) + .defaultValue(Boolean.toString(false)) .category(CATEGORY_ORGANIZATIONS) .type(PropertyType.BOOLEAN) .build())); |