mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +01:00
Closes #366: get the private key from the right user when processing files
This commit is contained in:
parent
fc98b0882f
commit
6f31a2c228
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user