Commit 755e9408 by 徐高华

权限bug

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