From e34bac0c91b9c9092ef9b2105c39e238d36bed7f Mon Sep 17 00:00:00 2001 From: jsonwan Date: Mon, 6 Sep 2021 21:38:42 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=8F=90=E4=BE=9BJOB=E7=9A=84=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E6=8B=93=E6=89=91=5Fbk=5Fiam=5Fpath=5F=20=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E6=9D=83=E9=99=90=E4=B8=AD=E5=BF=83=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E7=B2=BE=E5=87=86=E5=BA=A6=20#181?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bk/job/manage/api/iam/impl/ScriptCallbackHelper.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/job-manage/service-job-manage/src/main/java/com/tencent/bk/job/manage/api/iam/impl/ScriptCallbackHelper.java b/src/backend/job-manage/service-job-manage/src/main/java/com/tencent/bk/job/manage/api/iam/impl/ScriptCallbackHelper.java index 3377fe0bcd..0244f2a669 100644 --- a/src/backend/job-manage/service-job-manage/src/main/java/com/tencent/bk/job/manage/api/iam/impl/ScriptCallbackHelper.java +++ b/src/backend/job-manage/service-job-manage/src/main/java/com/tencent/bk/job/manage/api/iam/impl/ScriptCallbackHelper.java @@ -14,9 +14,6 @@ import com.tencent.bk.sdk.iam.dto.callback.response.CallbackBaseResponseDTO; import com.tencent.bk.sdk.iam.dto.callback.response.FetchInstanceInfoResponseDTO; import com.tencent.bk.sdk.iam.dto.callback.response.InstanceInfoDTO; -import com.tencent.bk.sdk.iam.dto.callback.response.ListAttributeResponseDTO; -import com.tencent.bk.sdk.iam.dto.callback.response.ListAttributeValueResponseDTO; -import com.tencent.bk.sdk.iam.dto.callback.response.ListInstanceByPolicyResponseDTO; import com.tencent.bk.sdk.iam.dto.callback.response.ListInstanceResponseDTO; import com.tencent.bk.sdk.iam.dto.callback.response.SearchInstanceResponseDTO; import lombok.extern.slf4j.Slf4j; @@ -89,7 +86,7 @@ protected CallbackBaseResponseDTO fetchInstanceResp( for (String instanceId : searchCondition.getIdList()) { try { ScriptDTO scriptDTO = scriptService.getScriptByScriptId(instanceId); - if (scriptDTO == null) { + if (scriptDTO == null || scriptDTO.isPublicScript() != basicInfoInterface.isPublicScript()) { return getNotFoundRespById(instanceId); } // 拓扑路径构建