A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: completely hide upload widget if user does not have permissions (#4198)
Marwan Khalil95c12c1840d8
diff --git a/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html b/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.htmlindex 30dbdd8e1..af1dd533b 100644--- a/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html+++ b/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html@@ -1,4 +1,4 @@-<pngx-widget-frame title="Upload new documents" i18n-title>+<pngx-widget-frame title="Upload new documents" i18n-title *pngxIfPermissions="{ action: PermissionAction.Add, type: PermissionType.Document }"><div header-buttons><a *ngIf="getStatusSuccess().length > 0" (click)="dismissCompleted()" [routerLink]="[]" ><span class="me-1" i18n="This button dismisses all status messages about processed documents on the dashboard (failed and successful)">Dismiss completed</span>@@ -9,7 +9,7 @@</a></div><div content tourAnchor="tour.upload-widget">- <form *pngxIfPermissions="{ action: PermissionAction.Add, type: PermissionType.Document }">+ <form><ngx-file-drop dropZoneLabel="Drop documents here or" browseBtnLabel="Browse files" (onFileDrop)="dropped($event)"(onFileOver)="fileOver($event)" (onFileLeave)="fileLeave($event)" dropZoneClassName="bg-light card"multiple="true" contentClassName="justify-content-center d-flex align-items-center py-5 px-2" [showBrowseBtn]=true