Merge remote-tracking branch 'origin/develop' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -160,6 +160,7 @@ public class UserCacheService {
|
||||
public @Nullable UserDTO retrieveUserData(String profileDb, String username, IntegryApplicationEnum application) {
|
||||
String dbName = settingsModel.getDbNameFromProfileDb(profileDb);
|
||||
|
||||
cacheLock.lock();
|
||||
List<UserDTO> users = cachedUsers.getOrDefault(dbName, null);
|
||||
|
||||
if (users == null || users.isEmpty())
|
||||
@@ -173,6 +174,7 @@ public class UserCacheService {
|
||||
(application == IntegryApplicationEnum.WMS && x.isWeb()) ||
|
||||
(application == IntegryApplicationEnum.GESTIONALE_BASE && x.isInternal())))
|
||||
.findFirst();
|
||||
cacheLock.unlock();
|
||||
|
||||
return foundUser.orElse(null);
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user