From d5856868745651d49f4c58275d30067ca1ecd597 Mon Sep 17 00:00:00 2001 From: Malawarayan Ganesan Date: Tue, 7 Jan 2025 15:31:18 +0000 Subject: [PATCH] fix(ExampleResource.kt): fix linting issue --- .../hmpps/learnerrecordsapi/resource/ExampleResource.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/uk/gov/justice/digital/hmpps/learnerrecordsapi/resource/ExampleResource.kt b/src/main/kotlin/uk/gov/justice/digital/hmpps/learnerrecordsapi/resource/ExampleResource.kt index 43bd873..ad373ed 100644 --- a/src/main/kotlin/uk/gov/justice/digital/hmpps/learnerrecordsapi/resource/ExampleResource.kt +++ b/src/main/kotlin/uk/gov/justice/digital/hmpps/learnerrecordsapi/resource/ExampleResource.kt @@ -6,7 +6,6 @@ import io.swagger.v3.oas.annotations.media.Schema import io.swagger.v3.oas.annotations.responses.ApiResponse import io.swagger.v3.oas.annotations.security.SecurityRequirement import io.swagger.v3.oas.annotations.tags.Tag -import org.springframework.security.access.prepost.PreAuthorize import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.PathVariable import org.springframework.web.bind.annotation.RequestMapping @@ -19,7 +18,7 @@ import java.time.LocalDateTime // TODO: This is an example and should renamed / replaced @RestController // Role here is specific to the UI. -//@PreAuthorize("hasRole('ROLE_TEMPLATE_KOTLIN__UI')") +// @PreAuthorize("hasRole('ROLE_TEMPLATE_KOTLIN__UI')") @RequestMapping(value = ["/example"], produces = ["application/json"]) class ExampleResource(private val exampleApiService: ExampleApiService) {