mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Fix: document link field consistent behavior with insufficient permissions (#7953)
This commit is contained in:
parent
de95b296a0
commit
f0ad073bb2
4 changed files with 22 additions and 6 deletions
|
|
@ -1020,10 +1020,14 @@ export class DocumentDetailComponent
|
|||
}
|
||||
return (
|
||||
!this.document ||
|
||||
this.permissionsService.currentUserHasObjectPermissions(
|
||||
(this.permissionsService.currentUserCan(
|
||||
PermissionAction.Change,
|
||||
doc
|
||||
)
|
||||
PermissionType.Document
|
||||
) &&
|
||||
this.permissionsService.currentUserHasObjectPermissions(
|
||||
PermissionAction.Change,
|
||||
doc
|
||||
))
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue