mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-05 22:03:11 +07:00
Closes #366: get the private key from the right user when processing files
This commit is contained in:
+2
-2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user