A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: drop redundant change perms checks on cards open button (#14601)
shamoon331fa1308873
diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.htmlindex 30acc44e2..767a2b376 100644--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html@@ -72,7 +72,7 @@<a class="btn btn-sm btn-outline-secondary" (click)="clickMoreLike.emit()"><i-bs name="diagram-3" class="me-1"></i-bs><span class="d-none d-md-inline" i18n>More like this</span></a>- <a routerLink="/documents/{{document().id}}" class="btn btn-sm btn-outline-secondary" *pngxIfPermissions="{ action: PermissionAction.Change, type: PermissionType.Document }">+ <a routerLink="/documents/{{document().id}}" class="btn btn-sm btn-outline-secondary"><i-bs name="file-earmark-richtext" class="me-1"></i-bs><span class="d-none d-md-inline" i18n>Open</span></a><pngx-preview-popup [document]="document()" #popupPreview>diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.spec.ts b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.spec.tsindex 4737f5337..53ba36dee 100644--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.spec.ts+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.spec.ts@@ -10,7 +10,6 @@ import {NgbTooltipModule,} from '@ng-bootstrap/ng-bootstrap'import { NgxBootstrapIconsModule, allIcons } from 'ngx-bootstrap-icons'-import { IfPermissionsDirective } from 'src/app/directives/if-permissions.directive'import { CustomDatePipe } from 'src/app/pipes/custom-date.pipe'import { DocumentTitlePipe } from 'src/app/pipes/document-title.pipe'import { IsNumberPipe } from 'src/app/pipes/is-number.pipe'@@ -52,7 +51,6 @@ describe('DocumentCardLargeComponent', () => {DocumentCardLargeComponent,DocumentTitlePipe,CustomDatePipe,- IfPermissionsDirective,SafeUrlPipe,IsNumberPipe,PreviewPopupComponent,diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.tsindex d0ff0ea3e..cd3259e94 100644--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts@@ -20,7 +20,6 @@ import {Document,} from 'src/app/data/document'import { SETTINGS_KEYS } from 'src/app/data/ui-settings'-import { IfPermissionsDirective } from 'src/app/directives/if-permissions.directive'import { CorrespondentNamePipe } from 'src/app/pipes/correspondent-name.pipe'import { CustomDatePipe } from 'src/app/pipes/custom-date.pipe'import { DocumentTitlePipe } from 'src/app/pipes/document-title.pipe'@@ -51,7 +50,6 @@ import { LoadingComponentWithPermissions } from '../../loading-component/loadingCorrespondentNamePipe,DocumentTypeNamePipe,StoragePathNamePipe,- IfPermissionsDirective,CustomDatePipe,RouterModule,NgbTooltipModule,diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.htmlindex e251e6211..f0b8fde2b 100644--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html@@ -144,7 +144,7 @@<div class="d-flex justify-content-between align-items-center"><div class="btn-group w-100">@if (document()) {- <a routerLink="/documents/{{document().id}}" class="btn btn-sm btn-outline-secondary" title="Open" i18n-title *pngxIfPermissions="{ action: PermissionAction.Change, type: PermissionType.Document }" i18n-title>+ <a routerLink="/documents/{{document().id}}" class="btn btn-sm btn-outline-secondary" title="Open" i18n-title><i-bs name="file-earmark-richtext"></i-bs></a><pngx-preview-popup [document]="document()" #popupPreview>diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.tsindex a0e8bd2ab..e1d86c3f5 100644--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts@@ -20,7 +20,6 @@ import {Document,} from 'src/app/data/document'import { SETTINGS_KEYS } from 'src/app/data/ui-settings'-import { IfPermissionsDirective } from 'src/app/directives/if-permissions.directive'import { CorrespondentNamePipe } from 'src/app/pipes/correspondent-name.pipe'import { CustomDatePipe } from 'src/app/pipes/custom-date.pipe'import { DocumentTitlePipe } from 'src/app/pipes/document-title.pipe'@@ -51,7 +50,6 @@ import { LoadingComponentWithPermissions } from '../../loading-component/loadingCorrespondentNamePipe,DocumentTypeNamePipe,StoragePathNamePipe,- IfPermissionsDirective,CustomDatePipe,RouterModule,NgbTooltipModule,