Skip to content

Commit

Permalink
Expand RoleV7 to include Resources
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Aug 13, 2024
1 parent b317a1a commit 137ad12
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> resourcesRequested = request.getRequestedResources();
List<String> resourcesRequested = request.getResources();
if (resourcesRequested == null || resourcesRequested.isEmpty()) {
presponse.allowed = true;
return presponse;
Expand Down

0 comments on commit 137ad12

Please sign in to comment.