|
@@ -47,7 +47,7 @@ public class SysMenuService {
|
|
private void removeNotUserMenu(Long userId, List<SysMenuVO> topMenus) {
|
|
private void removeNotUserMenu(Long userId, List<SysMenuVO> topMenus) {
|
|
for (int i = 0; i < topMenus.size(); i++) {
|
|
for (int i = 0; i < topMenus.size(); i++) {
|
|
SysMenuVO vo = topMenus.get(i);
|
|
SysMenuVO vo = topMenus.get(i);
|
|
- if (userId != vo.getUserId()) {
|
|
|
|
|
|
+ if (!userId.equals(vo.getUserId())) {
|
|
topMenus.remove(i);
|
|
topMenus.remove(i);
|
|
i--;
|
|
i--;
|
|
continue;
|
|
continue;
|