update 优化 放宽菜单权限 角色关联菜单无需管理员

feature/model
疯狂的狮子Li 1 year ago
parent 116927e903
commit 680ec7bbb7

@ -80,10 +80,6 @@ public class SysMenuController extends BaseController {
/** /**
* *
*/ */
@SaCheckRole(value = {
TenantConstants.SUPER_ADMIN_ROLE_KEY,
TenantConstants.TENANT_ADMIN_ROLE_KEY
}, mode = SaMode.OR)
@SaCheckPermission("system:menu:query") @SaCheckPermission("system:menu:query")
@GetMapping("/treeselect") @GetMapping("/treeselect")
public R<List<Tree<Long>>> treeselect(SysMenuBo menu) { public R<List<Tree<Long>>> treeselect(SysMenuBo menu) {
@ -96,10 +92,6 @@ public class SysMenuController extends BaseController {
* *
* @param roleId ID * @param roleId ID
*/ */
@SaCheckRole(value = {
TenantConstants.SUPER_ADMIN_ROLE_KEY,
TenantConstants.TENANT_ADMIN_ROLE_KEY
}, mode = SaMode.OR)
@SaCheckPermission("system:menu:query") @SaCheckPermission("system:menu:query")
@GetMapping(value = "/roleMenuTreeselect/{roleId}") @GetMapping(value = "/roleMenuTreeselect/{roleId}")
public R<MenuTreeSelectVo> roleMenuTreeselect(@PathVariable("roleId") Long roleId) { public R<MenuTreeSelectVo> roleMenuTreeselect(@PathVariable("roleId") Long roleId) {

Loading…
Cancel
Save