This is an automated email from the ASF dual-hosted git repository.

nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit 74229d87043bc55a4dd83cad37db59031d624af5
Author: nixonrodrigues <[email protected]>
AuthorDate: Thu Sep 17 15:49:50 2020 +0530

    ATLAS-3947 : Skip authorization for read of _ALL_ENTITY_TYPES and 
_ALL_CLASSIFICATION_TYPES types
    
    Change-Id: Iecd8ab427510cb37aaff99e420c25a579631dd4d
---
 .../org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java
 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java
index 458ec49..9aa8fbc 100644
--- 
a/repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java
+++ 
b/repository/src/main/java/org/apache/atlas/repository/store/graph/AtlasTypeDefGraphStore.java
@@ -270,6 +270,7 @@ public abstract class AtlasTypeDefGraphStore implements 
AtlasTypeDefStore {
             if (ret == null) {
                 throw new 
AtlasBaseException(AtlasErrorCode.TYPE_NAME_NOT_FOUND, name);
             }
+            return ret;
         }
 
         AtlasAuthorizationUtils.verifyAccess(new 
AtlasTypeAccessRequest(AtlasPrivilege.TYPE_READ, ret), "read type ", name);
@@ -322,6 +323,7 @@ public abstract class AtlasTypeDefGraphStore implements 
AtlasTypeDefStore {
             if (ret == null) {
                 throw new 
AtlasBaseException(AtlasErrorCode.TYPE_NAME_NOT_FOUND, name);
             }
+            return ret;
         }
 
         AtlasAuthorizationUtils.verifyAccess(new 
AtlasTypeAccessRequest(AtlasPrivilege.TYPE_READ, ret), "read type ", name);

Reply via email to