Skip to content

Commit

Permalink
Add back in IndexDocumentIntoSystemIndexAction
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Jan 16, 2025
1 parent a06fbf4 commit d0d4474
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ public List<RestHandler> getRestHandlers(

@Override
public List<ActionHandler<? extends ActionRequest, ? extends ActionResponse>> getActions() {
return Arrays.asList(new ActionHandler<>(RunClusterHealthAction.INSTANCE, TransportRunClusterHealthAction.class));
return Arrays.asList(
new ActionHandler<>(IndexDocumentIntoSystemIndexAction.INSTANCE, TransportIndexDocumentIntoSystemIndexAction.class),
new ActionHandler<>(RunClusterHealthAction.INSTANCE, TransportRunClusterHealthAction.class)
);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public void onConfigModelChanged(ConfigModel cm) {

@Override
public final DirectoryReader apply(DirectoryReader reader) throws IOException {

if (isSecurityIndexRequest() && !isAdminAuthenticatedOrInternalRequest()) {
return new EmptyFilterLeafReader.EmptyDirectoryReader(reader);
}
Expand Down

0 comments on commit d0d4474

Please sign in to comment.