From 13037b308a69670f73052aae6bab973a53c102c0 Mon Sep 17 00:00:00 2001 From: Jonas Natten Date: Thu, 12 Dec 2024 11:27:48 +0100 Subject: [PATCH] search-api: Stop requiring permissions for grep search --- .../scala/no/ndla/searchapi/controller/SearchController.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/search-api/src/main/scala/no/ndla/searchapi/controller/SearchController.scala b/search-api/src/main/scala/no/ndla/searchapi/controller/SearchController.scala index ba813b0b7..7ceece66e 100644 --- a/search-api/src/main/scala/no/ndla/searchapi/controller/SearchController.scala +++ b/search-api/src/main/scala/no/ndla/searchapi/controller/SearchController.scala @@ -608,8 +608,7 @@ trait SearchController { .in(jsonBody[GrepSearchInputDTO]) .out(jsonBody[GrepSearchResultsDTO]) .errorOut(errorOutputsFor(400, 401, 403)) - .requirePermission(DRAFT_API_WRITE) - .serverLogicPure { _ => input => grepSearchService.searchGreps(input) } + .serverLogicPure { input => grepSearchService.searchGreps(input) } /** This method fetches availability based on FEIDE access token in the request This does an actual api-call to the * feide api and should be used sparingly.