diff --git a/src/main/java/org/opensearch/security/privileges/ResourceAccessEvaluator.java b/src/main/java/org/opensearch/security/privileges/ResourceAccessEvaluator.java index ef5f2da654..bb62855137 100644 --- a/src/main/java/org/opensearch/security/privileges/ResourceAccessEvaluator.java +++ b/src/main/java/org/opensearch/security/privileges/ResourceAccessEvaluator.java @@ -55,11 +55,11 @@ public PrivilegesEvaluatorResponse evaluate(final ActionRequest request, if (isDebugEnabled) { log.debug("Evaluate permissions for {} on {}", user, clusterService.localNode().getName()); log.debug("Action: {}", action); - log.debug("Resource: {}", request.getRequestedResources()); + log.debug("Resource: {}", request.getResources()); log.debug("Security roles: {}", securityRoles.toString()); } - List resourcesRequested = request.getRequestedResources(); + List resourcesRequested = request.getResources(); if (resourcesRequested == null || resourcesRequested.isEmpty()) { presponse.allowed = true; return presponse;