aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-core/src/main
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2020-10-14 10:46:36 +0200
committersonartech <sonartech@sonarsource.com>2020-10-16 20:07:41 +0000
commitb493fce1f2d13e81aa76b3ae2f450801cc079b84 (patch)
tree562b4e06ed68c82e014bfb3e62021b16dc924055 /server/sonar-webserver-core/src/main
parenta4ab9ccfce778e88cc82d1d04f197af9b3d1af19 (diff)
downloadsonarqube-b493fce1f2d13e81aa76b3ae2f450801cc079b84.tar.gz
sonarqube-b493fce1f2d13e81aa76b3ae2f450801cc079b84.zip
SONAR-13936 Rename OrganizationPermission to GlobalPermission
Diffstat (limited to 'server/sonar-webserver-core/src/main')
-rw-r--r--server/sonar-webserver-core/src/main/java/org/sonar/server/startup/RegisterPermissionTemplates.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/startup/RegisterPermissionTemplates.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/startup/RegisterPermissionTemplates.java
index a027562baff..e4d40aa84cf 100644
--- a/server/sonar-webserver-core/src/main/java/org/sonar/server/startup/RegisterPermissionTemplates.java
+++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/startup/RegisterPermissionTemplates.java
@@ -31,7 +31,7 @@ import org.sonar.api.web.UserRole;
import org.sonar.core.util.UuidFactory;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
-import org.sonar.db.permission.OrganizationPermission;
+import org.sonar.db.permission.GlobalPermission;
import org.sonar.db.permission.template.PermissionTemplateDto;
import org.sonar.db.user.GroupDto;
import org.sonar.server.usergroups.DefaultGroupFinder;
@@ -98,8 +98,8 @@ public class RegisterPermissionTemplates implements Startable {
Optional<GroupDto> admins = dbClient.groupDao().selectByName(dbSession, DefaultGroups.ADMINISTRATORS);
if (admins.isPresent()) {
insertGroupPermission(dbSession, template, UserRole.ADMIN, admins.get());
- insertGroupPermission(dbSession, template, OrganizationPermission.APPLICATION_CREATOR.getKey(), admins.get());
- insertGroupPermission(dbSession, template, OrganizationPermission.PORTFOLIO_CREATOR.getKey(), admins.get());
+ insertGroupPermission(dbSession, template, GlobalPermission.APPLICATION_CREATOR.getKey(), admins.get());
+ insertGroupPermission(dbSession, template, GlobalPermission.PORTFOLIO_CREATOR.getKey(), admins.get());
} else {
LOG.error("Cannot setup default permission for group: " + DefaultGroups.ADMINISTRATORS);
}