Closes #366: get the private key from the right user when processing files

This commit is contained in:
bgamard 2020-01-21 12:54:50 +01:00
parent fc98b0882f
commit 6f31a2c228

View File

@ -101,9 +101,9 @@ public class FileProcessingAsyncListener {
return; return;
} }
// Get the user from the database // Get the creating user from the database for its private key
UserDao userDao = new UserDao(); UserDao userDao = new UserDao();
User user = userDao.getById(event.getUserId()); User user = userDao.getById(file.getUserId());
if (user == null) { if (user == null) {
// The user has been deleted meanwhile // The user has been deleted meanwhile
FileUtil.endProcessingFile(file.getId()); FileUtil.endProcessingFile(file.getId());