mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 17:41:19 +00:00
disable instead of hide doc edit buttons
This commit is contained in:
@@ -585,6 +585,13 @@ export class DocumentDetailComponent
|
||||
)
|
||||
}
|
||||
|
||||
get userIsOwner(): boolean {
|
||||
return (
|
||||
!this.document ||
|
||||
this.permissionsService.currentUserOwnsObject(this.document)
|
||||
)
|
||||
}
|
||||
|
||||
get userCanEdit(): boolean {
|
||||
return (
|
||||
!this.document ||
|
||||
|
||||
Reference in New Issue
Block a user