From 27733af3651ab3ff97df52c7225c68343eae70a0 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 22 Dec 2023 16:15:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E6=8A=A5=E5=91=8A=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1033726 --user=王孝刚 【接口测试】测试报告-操作-删除场景和用例报告失败 https://www.tapd.cn/55049933/s/1447576 --- .../io/metersphere/service/ApiCheckPermissionService.java | 6 ------ 1 file changed, 6 deletions(-) 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"));