Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Bandener <[email protected]>
  • Loading branch information
nibix committed Jun 28, 2024
1 parent f93125f commit d3fe0d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ public static PrivilegesEvaluatorResponse partiallyOk(
PrivilegesEvaluatorResponse response = new PrivilegesEvaluatorResponse();
response.onlyAllowedForIndices = ImmutableSet.copyOf(availableIndices);
response.indexToActionCheckTable = indexToActionCheckTable;
response.resolvedSecurityRoles.addAll(context.getMappedRoles());
response.resolvedSecurityRoles(context.getMappedRoles());
return response;
}

public static PrivilegesEvaluatorResponse insufficient(String missingPrivilege, PrivilegesEvaluationContext context) {
PrivilegesEvaluatorResponse response = new PrivilegesEvaluatorResponse();
response.indexToActionCheckTable = CheckTable.create(ImmutableSet.of("_"), ImmutableSet.of(missingPrivilege));
response.resolvedSecurityRoles.addAll(context.getMappedRoles());
response.resolvedSecurityRoles(context.getMappedRoles());
return response;
}

Expand All @@ -158,7 +158,7 @@ public static PrivilegesEvaluatorResponse insufficient(
) {
PrivilegesEvaluatorResponse response = new PrivilegesEvaluatorResponse();
response.indexToActionCheckTable = indexToActionCheckTable;
response.resolvedSecurityRoles.addAll(context.getMappedRoles());
response.resolvedSecurityRoles(context.getMappedRoles());
return response;
}

Expand Down

0 comments on commit d3fe0d4

Please sign in to comment.