Remove owner when uploading a document

This commit is contained in:
Martin Tan 2023-08-22 17:55:21 +08:00
parent aaf9484307
commit eee79b6f26

View File

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