优化角色进入分配页校验数据权限

springboot3
RuoYi 2025-04-16 13:27:18 +08:00
parent ad6342a6e4
commit bb4b78e379
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,7 @@ public class SysRoleController extends BaseController
@GetMapping("/authDataScope/{roleId}")
public String authDataScope(@PathVariable("roleId") Long roleId, ModelMap mmap)
{
roleService.checkRoleDataScope(roleId);
mmap.put("role", roleService.selectRoleById(roleId));
return prefix + "/dataScope";
}
@ -232,6 +233,7 @@ public class SysRoleController extends BaseController
@GetMapping("/authUser/{roleId}")
public String authUser(@PathVariable("roleId") Long roleId, ModelMap mmap)
{
roleService.checkRoleDataScope(roleId);
mmap.put("role", roleService.selectRoleById(roleId));
return prefix + "/authUser";
}