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