From 6f31a2c228fbac5eeba7df2fba5c09dff6eaaa7a Mon Sep 17 00:00:00 2001 From: bgamard Date: Tue, 21 Jan 2020 12:54:50 +0100 Subject: [PATCH] Closes #366: get the private key from the right user when processing files --- .../docs/core/listener/async/FileProcessingAsyncListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-core/src/main/java/com/sismics/docs/core/listener/async/FileProcessingAsyncListener.java b/docs-core/src/main/java/com/sismics/docs/core/listener/async/FileProcessingAsyncListener.java index cdcb20a8..6839ee86 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/listener/async/FileProcessingAsyncListener.java +++ b/docs-core/src/main/java/com/sismics/docs/core/listener/async/FileProcessingAsyncListener.java @@ -101,9 +101,9 @@ public class FileProcessingAsyncListener { return; } - // Get the user from the database + // Get the creating user from the database for its private key UserDao userDao = new UserDao(); - User user = userDao.getById(event.getUserId()); + User user = userDao.getById(file.getUserId()); if (user == null) { // The user has been deleted meanwhile FileUtil.endProcessingFile(file.getId());