mirror of
https://github.com/yangzongzhuan/RuoYi.git
synced 2025-10-15 01:58:29 +00:00
优化角色进入分配页校验数据权限
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user