diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html
index 1cfa4fff9..3cce1496b 100644
--- a/src-ui/src/app/components/document-list/document-list.component.html
+++ b/src-ui/src/app/components/document-list/document-list.component.html
@@ -141,13 +141,15 @@
[currentSortReverse]="list.sortReverse"
(sort)="onSort($event)"
i18n>ASN
-
Correspondent |
+ @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.Correspondent)) {
+ Correspondent |
+ }
Notes |
}
- Document type |
- Storage path |
+ @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.DocumentType)) {
+ Document type |
+ }
+ @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.StoragePath)) {
+ Storage path |
+ }
{{d.archive_serial_number}}
- |
- @if (d.correspondent) {
- {{(d.correspondent$ | async)?.name}}
- }
- |
+ @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.Correspondent)) {
+
+ @if (d.correspondent) {
+ {{(d.correspondent$ | async)?.name}}
+ }
+ |
+ }
{{d.title | documentTitle}}
@for (t of d.tags$ | async; track t) {
@@ -238,16 +246,20 @@
}
|
}
-
- @if (d.document_type) {
- {{(d.document_type$ | async)?.name}}
- }
- |
-
- @if (d.storage_path) {
- {{(d.storage_path$ | async)?.name}}
- }
- |
+ @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.DocumentType)) {
+
+ @if (d.document_type) {
+ {{(d.document_type$ | async)?.name}}
+ }
+ |
+ }
+ @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.StoragePath)) {
+
+ @if (d.storage_path) {
+ {{(d.storage_path$ | async)?.name}}
+ }
+ |
+ }
{{d.created_date | customDate}}
|
diff --git a/src-ui/src/app/components/document-list/document-list.component.ts b/src-ui/src/app/components/document-list/document-list.component.ts
index 537e24601..faef4c770 100644
--- a/src-ui/src/app/components/document-list/document-list.component.ts
+++ b/src-ui/src/app/components/document-list/document-list.component.ts
@@ -29,6 +29,11 @@ import {
DOCUMENT_SORT_FIELDS,
DOCUMENT_SORT_FIELDS_FULLTEXT,
} from 'src/app/services/rest/document.service'
+import {
+ PermissionAction,
+ PermissionsService,
+ PermissionType,
+} from 'src/app/services/permissions.service'
import { SavedViewService } from 'src/app/services/rest/saved-view.service'
import { SettingsService } from 'src/app/services/settings.service'
import { ToastService } from 'src/app/services/toast.service'
@@ -54,7 +59,8 @@ export class DocumentListComponent
private modalService: NgbModal,
private consumerStatusService: ConsumerStatusService,
public openDocumentsService: OpenDocumentsService,
- private settingsService: SettingsService
+ private settingsService: SettingsService,
+ public permissionService: PermissionsService
) {
super()
}