进入授权角色页校验数据权限

springboot3
RuoYi 2025-04-16 12:05:20 +08:00
parent bfaaece977
commit bbeb6d3b28
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ public class SysUserController extends BaseController
@GetMapping("/authRole/{userId}") @GetMapping("/authRole/{userId}")
public String authRole(@PathVariable("userId") Long userId, ModelMap mmap) public String authRole(@PathVariable("userId") Long userId, ModelMap mmap)
{ {
userService.checkUserDataScope(userId);
SysUser user = userService.selectUserById(userId); SysUser user = userService.selectUserById(userId);
// 获取用户所属的角色列表 // 获取用户所属的角色列表
List<SysRole> roles = roleService.selectRolesByUserId(userId); List<SysRole> roles = roleService.selectRolesByUserId(userId);