Skip to content

Commit

Permalink
Update PermissionController.java to return user information with name
Browse files Browse the repository at this point in the history
  • Loading branch information
kalavt authored Aug 29, 2024
1 parent d21a03c commit 88571d0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,8 @@ public ResponseEntity<Void> deleteCreateApplicationRoleFromUser(@PathVariable("u

@PreAuthorize(value = "@permissionValidator.isSuperAdmin()")
@GetMapping("/system/role/createApplication")
public List<String> getCreateApplicationRoleUsers() {
return rolePermissionService.queryUsersWithRole(SystemRoleManagerService.CREATE_APPLICATION_ROLE_NAME)
.stream().map(UserInfo::getUserId).collect(Collectors.toList());
public Set<UserInfo> getCreateApplicationRoleUsers() {
return rolePermissionService.queryUsersWithRole(SystemRoleManagerService.CREATE_APPLICATION_ROLE_NAME);
}

@GetMapping("/system/role/createApplication/{userId}")
Expand Down

0 comments on commit 88571d0

Please sign in to comment.