diff --git a/src/main/java/com/nike/cerberus/service/PermissionsService.java b/src/main/java/com/nike/cerberus/service/PermissionsService.java index 11342f5d4..adf889a21 100644 --- a/src/main/java/com/nike/cerberus/service/PermissionsService.java +++ b/src/main/java/com/nike/cerberus/service/PermissionsService.java @@ -199,6 +199,7 @@ private boolean doesHaveIntersectionIgnoreCase(Collection co1, Collectio .collect(Collectors.toSet()); return co2.stream() - .anyMatch(str -> co1LowerCase.contains(str.toLowerCase())); + .map(String::toLowerCase) + .anyMatch(co1LowerCase::contains); } } \ No newline at end of file