This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch kylin5 in repository https://gitbox.apache.org/repos/asf/kylin.git
commit ca7e40563392286daefd3773284db4b2092cd9d4 Author: DorrisRuixuanZhang <dorriszh...@hotmail.com> AuthorDate: Tue Apr 11 14:48:14 2023 +0800 [KYLIN-5599] [FOLLOW UP] minor fix unassigned users --- .../main/java/org/apache/kylin/rest/controller/NUserController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/metadata-server/src/main/java/org/apache/kylin/rest/controller/NUserController.java b/src/metadata-server/src/main/java/org/apache/kylin/rest/controller/NUserController.java index 44c0d87514..698ec3097a 100644 --- a/src/metadata-server/src/main/java/org/apache/kylin/rest/controller/NUserController.java +++ b/src/metadata-server/src/main/java/org/apache/kylin/rest/controller/NUserController.java @@ -393,9 +393,9 @@ public class NUserController extends NBasicController implements ApplicationList @RequestParam(value = "page_offset", required = false, defaultValue = "0") Integer pageOffset, @RequestParam(value = "page_size", required = false, defaultValue = "10") Integer pageSize) throws IOException { - List<ManagedUser> unassignedUsers = userService - .getManagedUsersByFuzzMatching(nameSeg, isCaseSensitive).stream().filter(user -> user.getAuthorities() - .stream().noneMatch(auth -> auth.getAuthority().contains(groupName))) + List<ManagedUser> unassignedUsers = userService.getManagedUsersByFuzzMatching(nameSeg, isCaseSensitive).stream() + .filter(user -> user.getAuthorities().stream() + .noneMatch(auth -> auth.getAuthority().equalsIgnoreCase(groupName))) .collect(Collectors.toList()); List<ManagedUserResponse> userList = getUserListResponsePage(pageOffset, pageSize, unassignedUsers); val userSize = unassignedUsers.size();