Skip to content

Commit

Permalink
FLytt tilbake
Browse files Browse the repository at this point in the history
  • Loading branch information
perkynades committed Nov 7, 2024
1 parent 2beeb6d commit eef0b23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/etterlatte-api/.nais/dev-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ spec:
cluster: dev-gcp
permissions:
roles:
- les-oms-sak-for-person
- les-oms-sak
- application: arbeid-og-inntekt
namespace: team-inntekt
cluster: dev-fss
Expand Down
2 changes: 1 addition & 1 deletion apps/etterlatte-api/.nais/prod-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ spec:
cluster: prod-gcp
permissions:
roles:
- les-oms-sak-for-person
- les-oms-sak
- application: arbeid-og-inntekt
namespace: team-inntekt
cluster: prod-fss
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,11 @@ fun Route.behandlingSakRoutes(
accessPolicyRolesEllerAdGrupper = setOf("les-bp-sak", "les-oms-sak")
}

route("oms/har_sak") {
install(AuthorizationPlugin) {
accessPolicyRolesEllerAdGrupper = setOf("les-oms-sak-for-person")
}

get {
get ("oms/har_sak") {
val foedselsnummer = call.receive<FoedselsnummerDTO>()
val saker = behandlingService.hentSakforPerson(foedselsnummer)

call.respond(HarOMSSakIGjenny(saker.isNotEmpty()))
}
}

get("/{$SAKID_CALL_PARAMETER}") {
Expand Down

0 comments on commit eef0b23

Please sign in to comment.