diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2018-11-29 22:02:19 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-12-12 20:21:02 +0100 |
commit | cf489b9db95939a21c84f3eb133b57ac52acfce7 (patch) | |
tree | 88f60b1a707b801cc95a8b1db62419163757389b /sonar-plugin-api | |
parent | 86cd2f36c84cdf32b64765583af59c4bd6569884 (diff) | |
download | sonarqube-cf489b9db95939a21c84f3eb133b57ac52acfce7.tar.gz sonarqube-cf489b9db95939a21c84f3eb133b57ac52acfce7.zip |
SONARCLOUD-213 clarify "scan" in org vs project permissions
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java index fb582ea5b7c..5a17fee9c9d 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/UserRole.java @@ -51,10 +51,16 @@ public @interface UserRole { */ String SECURITYHOTSPOT_ADMIN = "securityhotspotadmin"; + /** + * @since 7.5 + */ + String SCAN = "scan"; + String[] value() default {}; /** * Permissions which are implicitly available for any user, any group and to group "AnyOne" on public components. + * @since 7.5 */ Set<String> PUBLIC_PERMISSIONS = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(UserRole.USER, UserRole.CODEVIEWER))); |