Skip to content

Commit

Permalink
Fjernet ubrukte, misvisende, felter fra NavAnsattApis (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
tendestad authored Oct 2, 2024
1 parent f0627f2 commit 5379c91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ data class InnloggetNavAnsattDto(
val navn: String,
val brukerIdent: String?,
val kanSaksbehandle: Boolean,
val kanVeilede: Boolean,
val kanBeslutte: Boolean,
val kanBehandleKodeEgenAnsatt: Boolean,
val kanBehandleKode6: Boolean,
val kanBehandleKode7: Boolean,
val kanOppgavestyre: Boolean,
val kanReservere: Boolean,
val kanDrifte: Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ internal fun Route.NavAnsattApis() {
token.getUsername(),
token.getName(),
brukerIdent = saksbehandlerIdent,
kanSaksbehandle = pepClient.harBasisTilgang(),
kanVeilede = pepClient.harBasisTilgang(),
kanBeslutte = pepClient.harBasisTilgang(),
kanBehandleKodeEgenAnsatt = pepClient.harBasisTilgang(),
kanBehandleKode6 = pepClient.harBasisTilgang(),
kanBehandleKode7 = pepClient.harBasisTilgang(),
kanSaksbehandle = pepClient.harBasisTilgang(), //TODO mismatch mellom navnet 'kanSaksbehandle' og at alle som har tilgang til systemet har basistilgang
kanOppgavestyre = pepClient.erOppgaveStyrer(),
kanReservere = pepClient.harTilgangTilReservingAvOppgaver(),
kanDrifte = pepClient.kanLeggeUtDriftsmelding()
Expand Down Expand Up @@ -64,11 +59,6 @@ internal fun Route.NavAnsattApis() {
"Saksbehandler Sara",
"Z123456",
kanSaksbehandle = true,
kanVeilede = true,
kanBeslutte = true,
kanBehandleKodeEgenAnsatt = true,
kanBehandleKode6 = true,
kanBehandleKode7 = true,
kanOppgavestyre = true,
kanReservere = true,
kanDrifte = true
Expand Down

0 comments on commit 5379c91

Please sign in to comment.