diff options
author | Aurelien Poscia <aurelien.poscia@sonarsource.com> | 2022-06-01 17:15:53 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-06-02 20:03:17 +0000 |
commit | 78fda912bd3c41634a52eb15234dd69abfab2829 (patch) | |
tree | eb1045971b9fbd6f925e23255a5551f3907edd43 /server/sonar-webserver-auth | |
parent | fe99788c3702ae7f1c6318b4486c7c30bee0146d (diff) | |
download | sonarqube-78fda912bd3c41634a52eb15234dd69abfab2829.tar.gz sonarqube-78fda912bd3c41634a52eb15234dd69abfab2829.zip |
SONAR-16246 Show correct Project Count in Telemetry and System Info endpoint
Diffstat (limited to 'server/sonar-webserver-auth')
-rw-r--r-- | server/sonar-webserver-auth/src/main/java/org/sonar/server/user/ServerUserSession.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-webserver-auth/src/main/java/org/sonar/server/user/ServerUserSession.java b/server/sonar-webserver-auth/src/main/java/org/sonar/server/user/ServerUserSession.java index b8d9dfa21b5..1809f5a4938 100644 --- a/server/sonar-webserver-auth/src/main/java/org/sonar/server/user/ServerUserSession.java +++ b/server/sonar-webserver-auth/src/main/java/org/sonar/server/user/ServerUserSession.java @@ -196,8 +196,7 @@ public class ServerUserSession extends AbstractUserSession { return portfolioHierarchyComponentUuids .stream() - .map(uuid -> hasPermission(permission, uuid)) - .allMatch(Boolean::valueOf); + .allMatch(uuid -> hasPermission(permission, uuid)); } private boolean hasPermission(String permission, String projectUuid) { |