mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Fix: document link field consistent behavior with insufficient permissions (#7953)
This commit is contained in:
@@ -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
|
||||
))
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user