Skip to content

Commit

Permalink
chore: added auth on korriger and get ferdigstiltSm endpoints
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas <danduras@gmail.com>
  • Loading branch information
jaflaten and andreasDev committed Dec 6, 2024
1 parent 32a9bf3 commit 54b0135
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class NasjonalOppgaveController(
}

@GetMapping("/sykmelding/{sykmeldingId}/ferdigstilt")
@PostAuthorize("@oppgaveSecurityService.hasAccessToNasjonalOppgave(#oppgaveId, #authorization)")
@ResponseBody
fun getFerdigstiltSykmelding(
@PathVariable sykmeldingId: String,
Expand Down Expand Up @@ -155,6 +156,7 @@ class NasjonalOppgaveController(
}

@PostMapping("/sykmelding/{sykmeldingId}")
@PreAuthorize("@oppgaveSecurityService.hasAccessToNasjonalOppgave(#oppgaveId, #authorization)")
fun korrigerSykmelding(
@PathVariable sykmeldingId: String,
@RequestHeader("Authorization") authorization: String,
Expand Down

0 comments on commit 54b0135

Please sign in to comment.