A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
fix unable to change owner to someone else
shamoone373ca7bdc1a
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.tsindex e154cd03b..2038bd41e 100644--- a/src-ui/src/app/components/document-detail/document-detail.component.ts+++ b/src-ui/src/app/components/document-detail/document-detail.component.ts@@ -676,8 +676,8 @@ export class DocumentDetailComponentget userIsOwner(): boolean {let doc: PaperlessDocument = Object.assign({}, this.document)// dont disable while editing- if (this.document && this.store?.value.owner) {- doc.owner = this.store?.value.owner+ if (this.document && this.store?.value.permissions_form?.owner) {+ doc.owner = this.store?.value.permissions_form?.owner}return !this.document || this.permissionsService.currentUserOwnsObject(doc)}@@ -685,8 +685,8 @@ export class DocumentDetailComponentget userCanEdit(): boolean {let doc: PaperlessDocument = Object.assign({}, this.document)// dont disable while editing- if (this.document && this.store?.value.owner) {- doc.owner = this.store?.value.owner+ if (this.document && this.store?.value.permissions_form?.owner) {+ doc.owner = this.store?.value.permissions_form?.owner}return (!this.document ||