From 9512603eb9f1f225f5c6fd9f4d5ebdb96cf2762c Mon Sep 17 00:00:00 2001 From: arpit-at Date: Mon, 15 Jul 2024 14:24:56 +0530 Subject: [PATCH] DG-1697: Adding threadpool for linking/unlink policy --- webapp/src/main/java/org/apache/atlas/web/rest/EntityREST.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/main/java/org/apache/atlas/web/rest/EntityREST.java b/webapp/src/main/java/org/apache/atlas/web/rest/EntityREST.java index 414f2651e8..4a98f236c9 100644 --- a/webapp/src/main/java/org/apache/atlas/web/rest/EntityREST.java +++ b/webapp/src/main/java/org/apache/atlas/web/rest/EntityREST.java @@ -1963,7 +1963,7 @@ public void repairAccessControlAlias(@PathParam("guid") String guid) throws Atla @Consumes(Servlets.JSON_MEDIA_TYPE) @Timed public void linkBusinessPolicy(@PathParam("policyId") final String policyId, final LinkBusinessPolicyRequest request) throws AtlasBaseException { - if (ARGO_SERVICE_USER_NAME.equals(RequestContext.getCurrentUser())) { + if (!ARGO_SERVICE_USER_NAME.equals(RequestContext.getCurrentUser())) { throw new AtlasBaseException(AtlasErrorCode.UNAUTHORIZED_ACCESS, RequestContext.getCurrentUser(), "Policy linking"); } AtlasPerfTracer perf = null;