aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-01-11 12:51:26 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-01-13 18:06:35 +0100
commit2b881f44742dbb0ff5b8f651f81ced85e2bebed1 (patch)
tree08d033d549a84b9529bef48a8bec003a72c8a550 /sonar-db
parentc767a191af48e919aa5bcb40e80e15ae80a47595 (diff)
downloadsonarqube-2b881f44742dbb0ff5b8f651f81ced85e2bebed1.tar.gz
sonarqube-2b881f44742dbb0ff5b8f651f81ced85e2bebed1.zip
SONAR-6283 add global permission gatesadmin and use it
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/java/org/sonar/core/permission/GlobalPermissions.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-db/src/main/java/org/sonar/core/permission/GlobalPermissions.java b/sonar-db/src/main/java/org/sonar/core/permission/GlobalPermissions.java
index 4325c9df896..aa153c83276 100644
--- a/sonar-db/src/main/java/org/sonar/core/permission/GlobalPermissions.java
+++ b/sonar-db/src/main/java/org/sonar/core/permission/GlobalPermissions.java
@@ -31,6 +31,7 @@ public final class GlobalPermissions {
public static final String SYSTEM_ADMIN = "admin";
public static final String QUALITY_PROFILE_ADMIN = "profileadmin";
+ public static final String QUALITY_GATE_ADMIN = "gateadmin";
public static final String DASHBOARD_SHARING = "shareDashboard";
public static final String SCAN_EXECUTION = "scan";
public static final String PREVIEW_EXECUTION = "dryRunScan";
@@ -39,7 +40,8 @@ public final class GlobalPermissions {
/**
* All the global permissions values, ordered from {@link #SYSTEM_ADMIN} to {@link #PROVISIONING}.
*/
- public static final List<String> ALL = ImmutableList.of(SYSTEM_ADMIN, QUALITY_PROFILE_ADMIN, DASHBOARD_SHARING, SCAN_EXECUTION, PREVIEW_EXECUTION, PROVISIONING);
+ public static final List<String> ALL = ImmutableList.of(
+ SYSTEM_ADMIN, QUALITY_PROFILE_ADMIN, QUALITY_GATE_ADMIN, DASHBOARD_SHARING, SCAN_EXECUTION, PREVIEW_EXECUTION, PROVISIONING);
public static final String ALL_ON_ONE_LINE = Joiner.on(", ").join(GlobalPermissions.ALL);
private GlobalPermissions() {