浏览代码

修改接口权限过滤

gaohp 1 年之前
父节点
当前提交
7643fe62ac

+ 1 - 1
feifan-module-system/feifan-module-system-biz/src/main/java/cn/newfeifan/mall/module/system/controller/admin/auth/AuthController.java

@@ -114,7 +114,7 @@ public class AuthController {
         Set<Long> menuIds = permissionService.getRoleMenuListByRoleId(convertSet(roles, RoleDO::getId));
         List<MenuDO> menuList = menuService.getMenuList(menuIds);
         menuList.removeIf(menu -> !CommonStatusEnum.ENABLE.getStatus().equals(menu.getStatus())); // 移除禁用的菜单
-        menuList.removeIf(menu -> !menu.getCategoryId().equals(1L)); // 移除平台菜单
+        menuList.removeIf(menu -> menu.getCategoryId().equals(1L)); // 移除平台菜单
 
         // 2. 拼接结果返回
         return success(AuthConvert.INSTANCE.convert(user, roles, menuList));