Skip to content

Commit

Permalink
Reverterer sletting av sjekken av system tilgang
Browse files Browse the repository at this point in the history
Alle automatiserte tasker som ikke trigges av saksbehandlere har saksbehandler VL, og nå som denne ble feilet så feiler alle disse hos oss.
  • Loading branch information
stigebil committed Feb 21, 2025
1 parent fc5c0a0 commit b001f96
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ class TilgangAdvice(
joinpoint: JoinPoint,
rolletilgangssjekk: Rolletilgangssjekk,
) {
if (ContextService.hentSaksbehandler(SecureLog.Context.tom()) == Constants.BRUKER_ID_VEDTAKSLØSNINGEN) {
// når behandler har system tilgang, trenges ikke det validering på fagsystem eller rolle
return
}
val saksbehandler = ContextService.hentSaksbehandler(SecureLog.Context.tom())
val httpRequest = (RequestContextHolder.currentRequestAttributes() as ServletRequestAttributes).request

Expand Down

0 comments on commit b001f96

Please sign in to comment.