diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/RecordIndexerApi.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/RecordIndexerApi.java index 17b47c846880714f8892ad4d2286c39f2bed17ba..6ac08b6ee75a72b5a63f1e21d70b8d370e8601c7 100644 --- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/RecordIndexerApi.java +++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/RecordIndexerApi.java @@ -28,11 +28,9 @@ import org.opengroup.osdu.indexer.service.IndexerService; import org.opengroup.osdu.indexer.service.ReindexService; import org.opengroup.osdu.indexer.util.RecordInfo; import org.opengroup.osdu.is.core.model.RecordChangedMessages; -import org.opengroup.osdu.is.core.model.SearchServiceRole; import org.opengroup.osdu.is.core.util.AppException; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import org.springframework.web.context.annotation.RequestScope; @@ -55,7 +53,6 @@ public class RecordIndexerApi { // THIS IS AN INTERNAL USE API ONLY // THAT MEANS WE DON'T DOCUMENT IT IN SWAGGER, ACCESS IS LIMITED TO CLOUD TASK QUEUE CALLS ONLY - @PreAuthorize("@authorizationFilter.hasPermission('" + SearchServiceRole.ADMIN + "')") @PostMapping(path = "/index-worker", consumes = "application/json") @ApiOperation(hidden = true, value = "", notes = "") public ResponseEntity<JobStatus> indexWorker (