diff --git a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardProjectService.java b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardProjectService.java index 7bc1c035d8..9716cfc52c 100644 --- a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardProjectService.java +++ b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardProjectService.java @@ -77,7 +77,7 @@ public class DashboardProjectService { } //检查是否开启测试计划模块 Set 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()); } //检查是否开启缺陷模块