Commit 755e9408 by 徐高华

权限bug

parent 576f6bdb
...@@ -311,14 +311,18 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService { ...@@ -311,14 +311,18 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
} }
// 无需授权的权限 // 无需授权的权限
if(0==item.getAuthControl() && StringUtils.isEmpty(item.getBtnCodeRel())) { if(0==item.getAuthControl() && StringUtils.isEmpty(item.getBtnCodeRel())) {
menuCodes.add(code) ; if(!menuCodes.contains(code)) {
menuCodes.add(code);
}
continue ; continue ;
} }
} }
for(HaobanMenuBO item : allMenuList) { for(HaobanMenuBO item : allMenuList) {
String code = item.getBtnCodeRel() ; String code = item.getBtnCodeRel() ;
if(0==item.getAuthControl() && StringUtils.isNotEmpty(code) && menuCodes.contains(code)) { if(0==item.getAuthControl() && StringUtils.isNotEmpty(code) && menuCodes.contains(code)) {
menuCodes.add(item.getMenuCode()) ; if(!menuCodes.contains(item.getMenuCode())) {
menuCodes.add(item.getMenuCode());
}
continue ; continue ;
} }
} }
......
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