File tree 5 files changed +11
-2
lines changed
src/main/kotlin/no/nav/klage
5 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ class DokumentMapper(
132
132
journalpostId = unproxiedDUA.journalpostId,
133
133
dokumentInfoId = unproxiedDUA.dokumentInfoId,
134
134
harTilgangTilArkivvariant = harTilgangTilArkivvariant(dokument),
135
+ hasAccess = harTilgangTilArkivvariant(dokument),
135
136
datoOpprettet = unproxiedDUA.opprettet,
136
137
sortKey = unproxiedDUA.sortKey!!
137
138
)
@@ -437,6 +438,7 @@ class DokumentMapper(
437
438
tittel = vedlegg.tittel,
438
439
dokumentInfoId = vedlegg.dokumentInfoId,
439
440
harTilgangTilArkivvariant = harTilgangTilArkivvariant(vedlegg),
441
+ hasAccess = harTilgangTilArkivvariant(vedlegg),
440
442
valgt = saksdokumenter.containsDokument(
441
443
journalpost.journalpostId,
442
444
vedlegg.dokumentInfoId
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ data class DokumentView(
62
62
val journalpostId : String ,
63
63
val dokumentInfoId : String ,
64
64
val harTilgangTilArkivvariant : Boolean ,
65
+ val hasAccess : Boolean ,
65
66
val datoOpprettet : LocalDateTime ,
66
67
val sortKey : String ,
67
68
)
Original file line number Diff line number Diff line change @@ -102,7 +102,10 @@ class FerdigstillDokumentService(
102
102
harTilgangTilArkivvariant = true ,
103
103
hasAccess = true ,
104
104
vedlegg = it.vedlegg.map { vedlegg ->
105
- vedlegg.copy(harTilgangTilArkivvariant = true )
105
+ vedlegg.copy(
106
+ harTilgangTilArkivvariant = true ,
107
+ hasAccess = true ,
108
+ )
106
109
}.toMutableList()
107
110
)
108
111
},
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ data class DokumentReferanse(
113
113
val dokumentInfoId : String ,
114
114
val tittel : String? ,
115
115
val harTilgangTilArkivvariant : Boolean ,
116
+ val hasAccess : Boolean ,
116
117
val valgt : Boolean ,
117
118
val originalJournalpostId : String? ,
118
119
val sortKey : String ,
@@ -197,6 +198,7 @@ data class JournalfoertDokumentMetadata(
197
198
val dokumentInfoId : String ,
198
199
val title : String ,
199
200
val harTilgangTilArkivvariant : Boolean ,
201
+ val hasAccess : Boolean ,
200
202
)
201
203
202
204
data class DokumentUnderArbeidMetadata (
Original file line number Diff line number Diff line change @@ -194,7 +194,8 @@ class DokumentService(
194
194
dokumentInfoId = dokumentInfoId,
195
195
title = dokumentInfo?.tittel
196
196
? : throw RuntimeException (" Document/title not found in Dokarkiv" ),
197
- harTilgangTilArkivvariant = dokumentMapper.harTilgangTilArkivvariant(dokumentInfo)
197
+ harTilgangTilArkivvariant = dokumentMapper.harTilgangTilArkivvariant(dokumentInfo),
198
+ hasAccess = dokumentMapper.harTilgangTilArkivvariant(dokumentInfo)
198
199
)
199
200
}
200
201
You can’t perform that action at this time.
0 commit comments