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
The following commit(s) were added to refs/heads/master by this push:
new c06221a ATLAS-3575:- Update authorization - admin-purge for purge
entity.
c06221a is described below
commit c06221ae636babeabdeff042853286051f46cf07
Author: nixonrodrigues <[email protected]>
AuthorDate: Thu Jan 2 12:29:25 2020 +0530
ATLAS-3575:- Update authorization - admin-purge for purge entity.
---
.../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 b164577..a1bf18e 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
@@ -521,7 +521,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) {