aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-auth
diff options
context:
space:
mode:
authorAurelien Poscia <aurelien.poscia@sonarsource.com>2022-06-01 17:15:53 +0200
committersonartech <sonartech@sonarsource.com>2022-06-02 20:03:17 +0000
commit78fda912bd3c41634a52eb15234dd69abfab2829 (patch)
treeeb1045971b9fbd6f925e23255a5551f3907edd43 /server/sonar-webserver-auth
parentfe99788c3702ae7f1c6318b4486c7c30bee0146d (diff)
downloadsonarqube-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.java3
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) {