Skip to content

Commit 2128f46

Browse files
committed
Simpler name. TODO: Remove harTilgangTilArkivvariant when FE has adapted.
1 parent 03ee9f4 commit 2128f46

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/main/kotlin/no/nav/klage/dokument/api/mapper/DokumentMapper.kt

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ class DokumentMapper(
304304
dokumentInfoId = hoveddokument.dokumentInfoId,
305305
journalpostId = journalpost.journalpostId,
306306
harTilgangTilArkivvariant = harTilgangTilArkivvariant(hoveddokument),
307+
hasAccess = harTilgangTilArkivvariant(hoveddokument),
307308
valgt = saksdokumenter.containsDokument(
308309
journalpost.journalpostId,
309310
hoveddokument.dokumentInfoId

src/main/kotlin/no/nav/klage/dokument/service/FerdigstillDokumentService.kt

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ class FerdigstillDokumentService(
100100
//small hack for now, until we fetch data from SAF on consumer side of event.
101101
it.copy(
102102
harTilgangTilArkivvariant = true,
103+
hasAccess = true,
103104
vedlegg = it.vedlegg.map { vedlegg ->
104105
vedlegg.copy(harTilgangTilArkivvariant = true)
105106
}.toMutableList()

src/main/kotlin/no/nav/klage/oppgave/api/view/DokumentView.kt

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ data class DokumentReferanse(
2424
val tema: String?,
2525
val temaId: String?,
2626
val harTilgangTilArkivvariant: Boolean,
27+
val hasAccess: Boolean,
2728
val valgt: Boolean,
2829
val logiskeVedlegg: List<LogiskVedlegg>?,
2930
val vedlegg: MutableList<VedleggReferanse> = mutableListOf(),

0 commit comments

Comments
 (0)