Skip to content

Commit

Permalink
chore: getPapirSykmelding using postAuthorize
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas <[email protected]>
  • Loading branch information
jaflaten and andreasDev committed Dec 2, 2024
1 parent 1d99455 commit c3ae8f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import no.nav.sykdig.digitalisering.pdl.PersonService
import no.nav.sykdig.securelog
import org.springframework.http.HttpStatusCode
import org.springframework.http.ResponseEntity
import org.springframework.security.access.prepost.PostAuthorize
import org.springframework.security.access.prepost.PreAuthorize
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
Expand Down Expand Up @@ -50,7 +51,7 @@ class NasjonalOppgaveController(
}

@GetMapping("/oppgave/{oppgaveId}")
@PreAuthorize("@oppgaveSecurityService.hasAccessToNasjonalOppgave(#oppgaveId)")
@PostAuthorize("@oppgaveSecurityService.hasAccessToNasjonalOppgave(#oppgaveId)")
@ResponseBody
fun getPapirsykmeldingManuellOppgave(
@PathVariable oppgaveId: String,
Expand Down

0 comments on commit c3ae8f6

Please sign in to comment.