From eee79b6f26327690a1139ff317e3d2499c3f41e9 Mon Sep 17 00:00:00 2001 From: Martin Tan Date: Tue, 22 Aug 2023 17:55:21 +0800 Subject: [PATCH] Remove owner when uploading a document --- src/documents/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index 44368cfa1..9abe84eb7 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -746,7 +746,8 @@ class PostDocumentView(GenericAPIView): tag_ids=tag_ids, created=created, asn=archive_serial_number, - owner_id=request.user.id, + # Intentionally removing this because it prevents other users from editing + # owner_id=request.user.id, storage_path_id=storage_path_id, full_path=full_path, )