From 9c565c266f25b3d91fda59b5f55656d83f888889 Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Wed, 31 Jan 2024 17:23:50 +0530 Subject: [PATCH] Fix: Evaluator direct entity permissions to evauator method --- .../apache/atlas/authorizer/authorizers/EntityAuthorizer.java | 1 + webapp/src/main/java/org/apache/atlas/web/rest/EntityREST.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/repository/src/main/java/org/apache/atlas/authorizer/authorizers/EntityAuthorizer.java b/repository/src/main/java/org/apache/atlas/authorizer/authorizers/EntityAuthorizer.java index 6dcd535038..dab85f7884 100644 --- a/repository/src/main/java/org/apache/atlas/authorizer/authorizers/EntityAuthorizer.java +++ b/repository/src/main/java/org/apache/atlas/authorizer/authorizers/EntityAuthorizer.java @@ -416,6 +416,7 @@ private static AccessResult runESQueryAndEvaluateAccess(Map dsl) result.setAllowed(true); result.setPolicyId(matched_queries.get(0)); } + return result; } else { throw new AtlasBaseException("Failed to extract matched policy guid"); } 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 2b7e6d8b50..89258a99d1 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 @@ -174,7 +174,7 @@ public List evaluatePolicies(List