Skip to content

Commit 88571d0

Browse files
authored
Update PermissionController.java to return user information with name
1 parent d21a03c commit 88571d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/PermissionController.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,8 @@ public ResponseEntity<Void> deleteCreateApplicationRoleFromUser(@PathVariable("u
323323

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

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

0 commit comments

Comments
 (0)