mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Enhancement: preview button for document list and trash, refactor (#8384)
This commit is contained in:
parent
771b6606e0
commit
548a7f05d8
14 changed files with 210 additions and 182 deletions
|
|
@ -426,7 +426,7 @@ class DocumentViewSet(
|
|||
)
|
||||
|
||||
def file_response(self, pk, request, disposition):
|
||||
doc = Document.objects.select_related("owner").get(id=pk)
|
||||
doc = Document.global_objects.select_related("owner").get(id=pk)
|
||||
if request.user is not None and not has_perms_owner_aware(
|
||||
request.user,
|
||||
"view_document",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue