mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
disable instead of hide doc edit buttons
This commit is contained in:
parent
c1a1f6d74e
commit
7a241950d4
2 changed files with 13 additions and 6 deletions
|
|
@ -585,6 +585,13 @@ export class DocumentDetailComponent
|
|||
)
|
||||
}
|
||||
|
||||
get userIsOwner(): boolean {
|
||||
return (
|
||||
!this.document ||
|
||||
this.permissionsService.currentUserOwnsObject(this.document)
|
||||
)
|
||||
}
|
||||
|
||||
get userCanEdit(): boolean {
|
||||
return (
|
||||
!this.document ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue