diff --git a/api-test/backend/src/main/java/io/metersphere/service/ApiCheckPermissionService.java b/api-test/backend/src/main/java/io/metersphere/service/ApiCheckPermissionService.java index a02457b5b1..2040111102 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/ApiCheckPermissionService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/ApiCheckPermissionService.java @@ -32,12 +32,6 @@ public class ApiCheckPermissionService { } ApiScenarioReportWithBLOBs scenarioReport = apiScenarioReportMapper.selectByPrimaryKey(reportId); ApiDefinitionExecResultWithBLOBs apiReport = apiDefinitionExecResultMapper.selectByPrimaryKey(reportId); - if (scenarioReport == null) { - if (apiReport == null) { - MSException.throwException(Translator.get("check_owner_report")); - } - MSException.throwException(Translator.get("check_owner_report")); - } if (scenarioReport != null && (!projectIds.contains(scenarioReport.getProjectId()) || !SessionUtils.hasPermission(null, scenarioReport.getProjectId(), permissionId))) { MSException.throwException(Translator.get("check_owner_report"));