Skip to content

Commit

Permalink
#66 fix-event-webook (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtufisi authored Sep 3, 2024
1 parent c41f893 commit c749f0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ private ExtendedAdminEvent completeAdminEventAttributes(String uid, AdminEvent a
// add always missing agent username
ExtendedAuthDetails extendedAuthDetails = extendedAdminEvent.getAuthDetails();
if (!Strings.isNullOrEmpty(extendedAuthDetails.getUserId())) {
UserModel user = session.users().getUserById(realm, extendedAuthDetails.getUserId());
RealmModel authRealm = session.realms().getRealm(adminEvent.getAuthDetails().getRealmId());
UserModel user = session.users().getUserById(authRealm, extendedAuthDetails.getUserId());
extendedAuthDetails.setUsername(user.getUsername());
}

Expand Down

0 comments on commit c749f0c

Please sign in to comment.