Skip to content

Commit

Permalink
Fix Persona policy Custom asset selector with ? wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbonte21 committed Feb 1, 2024
1 parent aac4c53 commit b0204e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static Map<String, Object> getDSLForResources(List<String> entities, Set<
List<String> termsQualifiedNames = new ArrayList<>();
for (String entity: entities) {
if (!entity.equals("*")) {
if (entity.contains("*")) {
if (entity.contains("*") || entity.contains("?")) {
shouldClauses.add(getMap("wildcard", getMap("qualifiedName", entity)));
} else {
termsQualifiedNames.add(entity);
Expand Down

0 comments on commit b0204e6

Please sign in to comment.