diff --git a/apps/etterlatte-api/.nais/dev-api.yaml b/apps/etterlatte-api/.nais/dev-api.yaml index d8341098608..527906c4b14 100644 --- a/apps/etterlatte-api/.nais/dev-api.yaml +++ b/apps/etterlatte-api/.nais/dev-api.yaml @@ -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 diff --git a/apps/etterlatte-api/.nais/prod-api.yaml b/apps/etterlatte-api/.nais/prod-api.yaml index c542462ef8c..cf30d81877c 100644 --- a/apps/etterlatte-api/.nais/prod-api.yaml +++ b/apps/etterlatte-api/.nais/prod-api.yaml @@ -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 diff --git a/apps/etterlatte-api/src/main/kotlin/no/nav/etterlatte/samordning/sak/BehandlingSakRoutes.kt b/apps/etterlatte-api/src/main/kotlin/no/nav/etterlatte/samordning/sak/BehandlingSakRoutes.kt index 647d33edd55..df73d7475c0 100644 --- a/apps/etterlatte-api/src/main/kotlin/no/nav/etterlatte/samordning/sak/BehandlingSakRoutes.kt +++ b/apps/etterlatte-api/src/main/kotlin/no/nav/etterlatte/samordning/sak/BehandlingSakRoutes.kt @@ -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() val saker = behandlingService.hentSakforPerson(foedselsnummer) call.respond(HarOMSSakIGjenny(saker.isNotEmpty())) - } } get("/{$SAKID_CALL_PARAMETER}") {