Skip to content

Commit

Permalink
Merge pull request #561 from NDLANO/grep-remove-permission
Browse files Browse the repository at this point in the history
search-api: Stop requiring permissions for grep search
  • Loading branch information
jnatten authored Dec 12, 2024
2 parents de996ed + 13037b3 commit 3502cf9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3502cf9

Please sign in to comment.