From 3f508728c31e951c4b90bd999bb7de408ad44b81 Mon Sep 17 00:00:00 2001 From: hr2904 Date: Tue, 14 Jan 2025 17:08:50 +0530 Subject: [PATCH] added a missing boolean inverse --- .../apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java index 1f10508733..1fd9b504a7 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java @@ -532,7 +532,7 @@ public void authorizeRemoveRelation(AtlasEdge edge) throws AtlasBaseException { private boolean isRequestFromWF() { String workflowID = RequestContext.get().getRequestContextHeaders().getOrDefault("x-atlan-agent-workflow-id", ""); - boolean ret = workflowID.isEmpty(); + boolean ret = !workflowID.isEmpty(); if(ret){ LOG.info("Authorised one time request for workflow with id : {} ", workflowID); }