|
|
@ -195,7 +195,7 @@ public class SysUserController {
|
|
|
|
* @param userId userId
|
|
|
|
* @param userId userId
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@GetMapping("/scope/{userId}")
|
|
|
|
@GetMapping("/scope/{userId}")
|
|
|
|
@PreAuthorize("@per.hasPermission('system:user:grant')")
|
|
|
|
// @PreAuthorize("@per.hasPermission('system:user:grant')")
|
|
|
|
public R<SysUserScope> getUserRoleIds(@PathVariable("userId") Long userId) {
|
|
|
|
public R<SysUserScope> getUserRoleIds(@PathVariable("userId") Long userId) {
|
|
|
|
List<SysRole> roleList = sysUserRoleService.listRoles(userId);
|
|
|
|
List<SysRole> roleList = sysUserRoleService.listRoles(userId);
|
|
|
|
List<String> roleCodes = new ArrayList<>();
|
|
|
|
List<String> roleCodes = new ArrayList<>();
|
|
|
|