From 593bf3361114b624b2c6dd04daf58012be1db896 Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Mon, 20 Jan 2025 15:23:29 +0000 Subject: [PATCH] PI-2526 Fix admin role --- .../probationsearch/contactsearch/ContactSearchController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchController.kt b/src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchController.kt index f8e4ef4a..d782cb74 100644 --- a/src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchController.kt +++ b/src/main/kotlin/uk/gov/justice/hmpps/probationsearch/contactsearch/ContactSearchController.kt @@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.* @RestController @RequestMapping("/search/contacts") class ContactSearchController(val contactSearchService: ContactSearchService) { - @PreAuthorize("hasAnyRole('ROLE_PROBATION_CONTACT_SEARCH', 'ROLE_PROBATION_INTEGRAION_ADMIN')") + @PreAuthorize("hasAnyRole('ROLE_PROBATION_CONTACT_SEARCH', 'ROLE_PROBATION_INTEGRATION_ADMIN')") @RequestMapping(method = [RequestMethod.GET, RequestMethod.POST]) fun searchContact( @RequestBody request: ContactSearchRequest,