mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-18 13:58:12 +00:00
Fix: document link field consistent behavior with insufficient permissions (#7953)
This commit is contained in:
1 parent
de95b296a0
commit
f0ad073bb2
4 files changed
+22
-6
No files matched your search
@@ -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