Skip to content

Commit

Permalink
No ident check in feilregistrering from external api.
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Jonsson <[email protected]>
  • Loading branch information
oyvind-wedoe and flexable777 committed Oct 29, 2024
1 parent 4b69a7a commit 6cf80b4
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,9 @@ class BehandlingService(
fradelingReason: FradelingReason?,
utfoerendeSaksbehandlerIdent: String,
fradelingWithChangedHjemmelIdList: String? = null,
systemUserContext: Boolean = false,
): SaksbehandlerViewWrapped {
val behandling = getBehandlingForUpdate(behandlingId = behandlingId, ignoreCheckSkrivetilgang = true)
val behandling = getBehandlingForUpdate(behandlingId = behandlingId, ignoreCheckSkrivetilgang = true, systemUserContext = systemUserContext)
if (tildeltSaksbehandlerIdent != null) {
//Denne sjekken gjøres kun når det er en tildeling:

Expand Down Expand Up @@ -1737,15 +1738,17 @@ class BehandlingService(
behandling = candidates.first(),
navIdent = navIdent,
reason = reason,
fagsystem = fagsystem
fagsystem = fagsystem,
systemUserContext = true,
)
}

private fun feilregistrer(
behandling: Behandling,
navIdent: String,
reason: String,
fagsystem: Fagsystem
fagsystem: Fagsystem,
systemUserContext: Boolean = false,
): Behandling {
val navn = saksbehandlerService.getNameForIdentDefaultIfNull(navIdent)

Expand All @@ -1755,7 +1758,8 @@ class BehandlingService(
enhetId = null,
fradelingReason = FradelingReason.ANNET,
utfoerendeSaksbehandlerIdent = navIdent,
fradelingWithChangedHjemmelIdList = null
fradelingWithChangedHjemmelIdList = null,
systemUserContext = systemUserContext,
)

val event = behandling.setFeilregistrering(
Expand Down

0 comments on commit 6cf80b4

Please sign in to comment.