fix:修复评委菜单

This commit is contained in:
zhonghua 2026-04-14 18:23:04 +08:00
parent 565cfc4321
commit dfccb07f5a

View File

@ -68,6 +68,11 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
if (!isSuperAdmin && roles != null && roles.contains(RoleConstants.JUDGE)) {
tenantMenuIds.addAll(collectJudgePortalMenuIds(allMenus));
}
// 机构租户纯评委仅保留我的评审菜单树不包含租户端工作台/数据统计/活动管理等 docs/design/menu-config.md 一致
if (!isSuperAdmin && shouldHideTenantJudgeManagementMenuForJudge(roles)) {
tenantMenuIds.clear();
tenantMenuIds.addAll(collectJudgePortalMenuIds(allMenus));
}
if (isSuperAdmin) {
// 超管按租户菜单过滤但不做权限码过滤