Commit 576f6bdb by 徐高华

权限bug

parent 560b24f4
......@@ -307,7 +307,6 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
String code = item.getMenuCode() ;
// 开启的权限
if(menuCodes.contains(code)) {
menuCodes.add(code) ;
continue ;
}
// 无需授权的权限
......@@ -318,8 +317,8 @@ public class HaobanRoleApiServiceImpl implements HaobanRoleApiService {
}
for(HaobanMenuBO item : allMenuList) {
String code = item.getBtnCodeRel() ;
if(0==item.getAuthControl() && StringUtils.isNotEmpty(item.getBtnCodeRel()) && menuCodes.contains(code)) {
menuCodes.add(code) ;
if(0==item.getAuthControl() && StringUtils.isNotEmpty(code) && menuCodes.contains(code)) {
menuCodes.add(item.getMenuCode()) ;
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