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

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

No files matched your search

+1 -1
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",