Commit 6bdd8f10 by guojuxing

权限项操作修复

parent b38171e5
......@@ -960,6 +960,7 @@ public class MenuApiServiceImpl implements MenuApiService {
//获取配置在权限项内的操作项数据
List<MenuDTO> operationItemListOfAuthItem = getOperationItemOfAuthItem();
//已配置的操作项需要权限控制
if (CollectionUtils.isNotEmpty(operationItemListOfAuthItem)) {
for (MenuDTO menuDTO : operationItemListOfAuthItem) {
if (!operationItemMap.containsKey(menuDTO.getMenuId()) || StringUtils.isBlank(versionCode)
|| !menuDTO.getMenuVersion().contains("_" + versionCode + "_")) {
......@@ -968,6 +969,7 @@ public class MenuApiServiceImpl implements MenuApiService {
resultList.add(menuDTO);
}
}
}
//仅超管可用
if (tabSysUser.getSuperAdmin().intValue() != 1) {
List<TabSysUser> adminOnlyOperationItemList = menuService.listAdminOnlyOperationItem();
......
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