Skip to content

Commit

Permalink
Remove call to getUnresolvedIndexPatterns
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Dec 3, 2024
1 parent 53ada80 commit 30d457c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ public IndexMatcherAndPermissions getIndexMatcherAndPermissions(
IndexNameExpressionResolver resolver,
ClusterService cs
) {
if ("*".equals(getUnresolvedIndexPattern(user))) {
if ("*".equals(indexPattern)) {
return new IndexMatcherAndPermissions(ALL_INDICES, perms);
}
return new IndexMatcherAndPermissions(attemptResolveIndexNames(user, resolver, cs), perms);
Expand Down Expand Up @@ -1011,7 +1011,7 @@ private static boolean impliesTypePerm(
IndexMatcherAndPermissions[] indexMatcherAndPermissions;
if (resolved.isLocalAll()) {
indexMatcherAndPermissions = ipatterns.stream()
.filter(indexPattern -> "*".equals(indexPattern.getUnresolvedIndexPattern(user)))
.filter(indexPattern -> "*".equals(indexPattern.indexPattern))
.map(p -> p.getIndexMatcherAndPermissions(user, resolver, cs))
.toArray(IndexMatcherAndPermissions[]::new);
} else {
Expand Down

0 comments on commit 30d457c

Please sign in to comment.