Skip to content

Commit

Permalink
Reverterer sletting av sjekken av system tilgang (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
stigebil authored Feb 21, 2025
1 parent fc5c0a0 commit 94827e6
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 94827e6

Please sign in to comment.