fix(工作台): 修复获取有权限的项目报错问题

--bug=1050554 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001050554
This commit is contained in:
guoyuqi 2024-12-18 10:24:20 +08:00 committed by Craftsman
parent 1619f01882
commit 89e7c943f7
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public class DashboardProjectService {
} }
//检查是否开启测试计划模块 //检查是否开启测试计划模块
Set<String> planProjectIds = hasUserPermissionProjectIds.get(PermissionConstants.TEST_PLAN_READ); Set<String> planProjectIds = hasUserPermissionProjectIds.get(PermissionConstants.TEST_PLAN_READ);
if (CollectionUtils.isNotEmpty(scenarioProjectIds)) { if (CollectionUtils.isNotEmpty(planProjectIds)) {
searchPlanProjectIds = planProjectIds.stream().filter(t -> finalModuleMap.get(t).contains(TEST_PLAN)).collect(Collectors.toSet()); searchPlanProjectIds = planProjectIds.stream().filter(t -> finalModuleMap.get(t).contains(TEST_PLAN)).collect(Collectors.toSet());
} }
//检查是否开启缺陷模块 //检查是否开启缺陷模块