A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Hide selects when user doesnt have view permissions
shamooncbab1a51f1fb
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.htmlindex 5501e8ae7..3459ce2ae 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 @@<app-input-date i18n-title title="Date created" formControlName="created_date" [suggestions]="suggestions?.dates"[error]="error?.created_date"></app-input-date><app-input-select [items]="correspondents" i18n-title title="Correspondent" formControlName="correspondent" [allowNull]="true"- (createNew)="createCorrespondent($event)" [suggestions]="suggestions?.correspondents"></app-input-select>+ (createNew)="createCorrespondent($event)" [suggestions]="suggestions?.correspondents" *appIfPermissions="{ action: PermissionAction.View, type: PermissionType.Correspondent }"></app-input-select><app-input-select [items]="documentTypes" i18n-title title="Document type" formControlName="document_type" [allowNull]="true"- (createNew)="createDocumentType($event)" [suggestions]="suggestions?.document_types"></app-input-select>+ (createNew)="createDocumentType($event)" [suggestions]="suggestions?.document_types" *appIfPermissions="{ action: PermissionAction.View, type: PermissionType.DocumentType }"></app-input-select><app-input-select [items]="storagePaths" i18n-title title="Storage path" formControlName="storage_path" [allowNull]="true"- (createNew)="createStoragePath($event)" [suggestions]="suggestions?.storage_paths" i18n-placeholder placeholder="Default"></app-input-select>- <app-input-tags formControlName="tags" [suggestions]="suggestions?.tags"></app-input-tags>+ (createNew)="createStoragePath($event)" [suggestions]="suggestions?.storage_paths" i18n-placeholder placeholder="Default" *appIfPermissions="{ action: PermissionAction.View, type: PermissionType.StoragePath }"></app-input-select>+ <app-input-tags formControlName="tags" [suggestions]="suggestions?.tags" *appIfPermissions="{ action: PermissionAction.View, type: PermissionType.Tag }"></app-input-tags></ng-template></li>