summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2022-08-22 11:05:42 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2022-08-22 18:52:13 +0000
commit12af6a010abc5e12030933e9d192ed712dfc99cb (patch)
tree8f6cacf1293b0fb31a15549d81240218394b57ce
parent9efabf266f2c21ba7aa30a2ddea5eabfc145ac43 (diff)
Fix use of encrypted user in backend
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4141 Change-Id: I4ebef3cb44eee6d15cde7ae1e2c88fa91ac6ff20
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java
index d895b694f5..1cd84d02a7 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/filters/ThreadLocalUtils.java
@@ -83,7 +83,7 @@ public class ThreadLocalUtils implements IUsersThreadLocalHolder {
private void updateUserContext(String user_id) {
User user = userBusinessLogic.getUser(user_id, false);
Set<String> roles = new HashSet<>(Arrays.asList(user.getRole()));
- UserContext userContext = new UserContext(user_id, roles, user.getFirstName(), user.getLastName());
+ UserContext userContext = new UserContext(user.getUserId(), roles, user.getFirstName(), user.getLastName());
ThreadLocalsHolder.setUserContext(userContext);
}
}