Commit 474d73c5 by chaitali borole Committed by Sarath Subramanian

ATLAS-3845 : Audit API returns the audit information for an unauthorised entity

parent c8cf4765
......@@ -806,6 +806,9 @@ public class EntityREST {
perf = AtlasPerfTracer.getPerfTracer(PERF_LOG, "EntityREST.getAuditEvents(" + guid + ", " + startKey + ", " + count + ")");
}
// following call enforces authorization for entity-read
entitiesStore.getHeaderById(guid);
List<EntityAuditEventV2> ret = new ArrayList<>();
if(auditAction != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment