Skip to content

Commit

Permalink
Merge pull request #2248 from atlanhq/stag-master-sync-helper
Browse files Browse the repository at this point in the history
Sync master into staging
  • Loading branch information
nikhilbonte21 authored Aug 10, 2023
2 parents 5249c87 + 4fcda23 commit 6ae97c2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@ private EntityMutationResponse createOrUpdate(EntityStream entityStream, boolean
boolean skipAuthStarredDetailsUpdate = diffEntity != null && MapUtils.isEmpty(diffEntity.getRelationshipAttributes()) && MapUtils.isNotEmpty(diffEntity.getAttributes()) && diffEntity.getAttributes().size() == 3 && diffEntity.getAttributes().containsKey(ATTR_STARRED_BY) && diffEntity.getAttributes().containsKey(ATTR_STARRED_COUNT) && diffEntity.getAttributes().containsKey(ATTR_STARRED_DETAILS_LIST);
if (skipAuthBaseConditions && (skipAuthMeaningsUpdate || skipAuthStarredDetailsUpdate)) {
//do nothing, only diff is relationshipAttributes.meanings, allow update

} else {
AtlasAuthorizationUtils.verifyUpdateEntityAccess(typeRegistry, entityHeader,"update entity: type=" + entity.getTypeName());
}
Expand Down

0 comments on commit 6ae97c2

Please sign in to comment.