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)
}
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 ||