Skip to content

Commit 7f19cf8

Browse files
Merge pull request #2256 from atlanhq/master
Sync beta with master
2 parents 6e58258 + bf361c8 commit 7f19cf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

repository/src/main/java/org/apache/atlas/repository/store/graph/v2/preprocessor/resource/AbstractResourcePreProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void authorizeResourceUpdate(AtlasEntity resourceEntity, AtlasVertex ResourceVer
6262
if (asset != null) {
6363
//Found linked asset in payload
6464
AtlasVertex assetVertex = entityRetriever.getEntityVertex(asset);
65-
assetEntity = new AtlasEntityHeader(entityRetriever.toAtlasEntity(assetVertex));
65+
assetEntity = entityRetriever.toAtlasEntityHeaderWithClassifications(assetVertex);
6666

6767
} else {
6868
//Check for linked asset in store
@@ -76,7 +76,7 @@ void authorizeResourceUpdate(AtlasEntity resourceEntity, AtlasVertex ResourceVer
7676
if (atlasVertexIterator.hasNext()) {
7777
//Found linked asset in store
7878
AtlasVertex assetVertex = (AtlasVertex) atlasVertexIterator.next();
79-
assetEntity = new AtlasEntityHeader(entityRetriever.toAtlasEntity(assetVertex));
79+
assetEntity = entityRetriever.toAtlasEntityHeaderWithClassifications(assetVertex);
8080
}
8181
}
8282

@@ -101,7 +101,7 @@ void authorizeResourceDelete(AtlasVertex resourceVertex) throws AtlasBaseExcepti
101101

102102
AtlasObjectId asset = getAssetRelationAttr(resourceEntity);
103103
if (asset != null) {
104-
AtlasEntityHeader assetEntity = new AtlasEntityHeader(entityRetriever.toAtlasEntity(asset.getGuid()));
104+
AtlasEntityHeader assetEntity = entityRetriever.toAtlasEntityHeaderWithClassifications(asset.getGuid());
105105
verifyAssetAccess(assetEntity, AtlasPrivilege.ENTITY_UPDATE, resourceEntity, AtlasPrivilege.ENTITY_DELETE);
106106
} else {
107107
//No linked asset to the Resource, check for resource delete permission

0 commit comments

Comments
 (0)