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

pull/552/head
RuoYi 2025-04-16 13:26:30 +08:00
parent e511d4ed27
commit 79daab1614
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";
}