Commit 6bdd8f10 by guojuxing

权限项操作修复

parent b38171e5
...@@ -960,12 +960,14 @@ public class MenuApiServiceImpl implements MenuApiService { ...@@ -960,12 +960,14 @@ public class MenuApiServiceImpl implements MenuApiService {
//获取配置在权限项内的操作项数据 //获取配置在权限项内的操作项数据
List<MenuDTO> operationItemListOfAuthItem = getOperationItemOfAuthItem(); List<MenuDTO> operationItemListOfAuthItem = getOperationItemOfAuthItem();
//已配置的操作项需要权限控制 //已配置的操作项需要权限控制
for (MenuDTO menuDTO : operationItemListOfAuthItem) { if (CollectionUtils.isNotEmpty(operationItemListOfAuthItem)) {
if (!operationItemMap.containsKey(menuDTO.getMenuId()) || StringUtils.isBlank(versionCode) for (MenuDTO menuDTO : operationItemListOfAuthItem) {
|| !menuDTO.getMenuVersion().contains("_" + versionCode + "_")) { if (!operationItemMap.containsKey(menuDTO.getMenuId()) || StringUtils.isBlank(versionCode)
//如果不存在,或者操作项的版本不对 || !menuDTO.getMenuVersion().contains("_" + versionCode + "_")) {
//则是没有权限的操作项 //如果不存在,或者操作项的版本不对
resultList.add(menuDTO); //则是没有权限的操作项
resultList.add(menuDTO);
}
} }
} }
//仅超管可用 //仅超管可用
......
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