From 28aebdd2f0a8b1a7f91085c34c18773fffa79405 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 12 Nov 2020 15:26:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E8=87=AA=E5=8A=A8=E4=B8=94=E5=85=B3=E8=81=94=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E4=B8=BA=E5=85=B6=E4=BB=96=E6=97=B6=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E4=B8=AD=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E8=AF=A5=E7=94=A8=E4=BE=8B=E5=87=BA=E7=8E=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/service/CheckOwnerService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/main/java/io/metersphere/service/CheckOwnerService.java b/backend/src/main/java/io/metersphere/service/CheckOwnerService.java index fdc7faef04..0977f3dc21 100644 --- a/backend/src/main/java/io/metersphere/service/CheckOwnerService.java +++ b/backend/src/main/java/io/metersphere/service/CheckOwnerService.java @@ -45,6 +45,10 @@ public class CheckOwnerService { } public void checkApiTestOwner(String testId) { + // 关联为其他时 + if (StringUtils.equals("other", testId)) { + return; + } String workspaceId = SessionUtils.getCurrentWorkspaceId(); QueryAPITestRequest request = new QueryAPITestRequest(); request.setWorkspaceId(workspaceId);