This is an automated email from the ASF dual-hosted git repository.
nixon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 272d46d ATLAS-3575:- Update authorization - admin-purge for purge
entity.
272d46d is described below
commit 272d46d532ad15b67ffb9d66c1d97f6ba044dc55
Author: nixonrodrigues <[email protected]>
AuthorDate: Thu Jan 2 12:29:25 2020 +0530
ATLAS-3575:- Update authorization - admin-purge for purge entity.
(cherry picked from commit c06221ae636babeabdeff042853286051f46cf07)
---
.../org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java
index ee0a216..ce0db4c 100644
---
a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java
+++
b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java
@@ -516,7 +516,7 @@ public class AtlasEntityStoreV2 implements AtlasEntityStore
{
throw new AtlasBaseException(AtlasErrorCode.INVALID_PARAMETERS,
"Guid(s) not specified");
}
- AtlasAuthorizationUtils.verifyAccess(new
AtlasAdminAccessRequest(AtlasPrivilege.ADMIN_IMPORT), "purge entity: guids=",
guids);
+ AtlasAuthorizationUtils.verifyAccess(new
AtlasAdminAccessRequest(AtlasPrivilege.ADMIN_PURGE), "purge entity: guids=",
guids);
Collection<AtlasVertex> purgeCandidates = new ArrayList<>();
for (String guid : guids) {