Enhancement: preview button for document list and trash, refactor (#8384)

This commit is contained in:
shamoon
2024-11-29 21:24:33 -08:00
committed by GitHub
parent 771b6606e0
commit 548a7f05d8
14 changed files with 210 additions and 182 deletions

View File

@@ -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",