【7.2.5】更新权限绑定问题

pull/37/head
fengshuonan 2022-10-08 18:33:25 +08:00
parent 3baf7fe70f
commit 7f7df09eb5
1 changed files with 0 additions and 8 deletions

View File

@ -442,14 +442,6 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
menuWrapper.eq(SysMenu::getDelFlag, YesOrNotEnum.N.getCode());
menuWrapper.eq(SysMenu::getStatusFlag, StatusEnum.ENABLE.getCode());
// 非超级管理员则获取自己拥有的菜单
if (!LoginContext.me().getSuperAdminFlag()) {
List<Long> menuIdList = getCurrentUserMenuIds();
if (!menuIdList.isEmpty()) {
menuWrapper.in(SysMenu::getMenuId, menuIdList);
}
}
// 查询所有菜单列表
List<SysMenu> sysMenuList = this.list(menuWrapper);