mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	fix unable to change owner to someone else
This commit is contained in:
		| @@ -676,8 +676,8 @@ export class DocumentDetailComponent | ||||
|   get 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 DocumentDetailComponent | ||||
|   get 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 || | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon