From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 6 Mar 2023 19:07:40 +0000 (-0800) Subject: Hide selects when user doesnt have view permissions X-Git-Tag: v1.14.0-beta.rc1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbab1a51f1fbe7061262a88d883ced00052534b6;p=thirdparty%2Fpaperless-ngx.git Hide selects when user doesnt have view permissions [ci skip] --- diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index 5501e8ae7f..3459ce2ae4 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -77,12 +77,12 @@ + (createNew)="createCorrespondent($event)" [suggestions]="suggestions?.correspondents" *appIfPermissions="{ action: PermissionAction.View, type: PermissionType.Correspondent }"> + (createNew)="createDocumentType($event)" [suggestions]="suggestions?.document_types" *appIfPermissions="{ action: PermissionAction.View, type: PermissionType.DocumentType }"> - + (createNew)="createStoragePath($event)" [suggestions]="suggestions?.storage_paths" i18n-placeholder placeholder="Default" *appIfPermissions="{ action: PermissionAction.View, type: PermissionType.StoragePath }"> +