Commit 8764de05 by guojuxing

超级管理员权限修复

parent 5d631994
...@@ -1352,10 +1352,13 @@ public class MenuApiServiceImpl implements MenuApiService { ...@@ -1352,10 +1352,13 @@ public class MenuApiServiceImpl implements MenuApiService {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "用户不存在"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "用户不存在");
} }
// //添加逻辑:如果是超级管理员,直接全部有效,不存在没有权限的操作项 //添加逻辑:如果是超级管理员,直接全部有效,不存在没有权限的操作项
// if (tabSysUser.getSuperAdmin().intValue() == 1) { if (tabSysUser.getSuperAdmin().intValue() == 1) {
// return ServiceResponse.success(new ArrayList<>()); //
// } MenuListQO params = new MenuListQO();
List<TabSysMenu> adminMenuList = filterOperationUserDepartAuth(menuService.listMenu(params), tabSysUser);
return ServiceResponse.success(EntityUtil.changeEntityListNew(MenuDTO.class, adminMenuList));
}
//用户拥有的菜单权限 //用户拥有的菜单权限
List<TabSysMenu> menuList = getUserMenuList(userId); List<TabSysMenu> menuList = getUserMenuList(userId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment