Skip to content

Audit log before after detail #1705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 24, 2025
Prev Previous commit
Next Next commit
Added before/after detail of group member role update event
  • Loading branch information
dragonpoo committed May 23, 2025
commit 22c9938fae64df4e0bf1fbf4744cd54c5fd86c3f
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class GroupMemberRoleUpdateEvent extends BaseGroupMemberEvent {
private final String memberId;
private final String memberName;
private final String memberRole;
private final String oldMemberRole;

@Override
public EventType getEventType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ public Mono<Void> publishGroupMemberRoleUpdateEvent(boolean publish, String grou
.groupName(group.getName(locale))
.memberId(member.getId())
.memberName(member.getName())
.memberRole(previousGroupMember.getRole().getValue() + " => " + updateRoleRequest.getRole())
.memberRole(updateRoleRequest.getRole())
.oldMemberRole(previousGroupMember.getRole().getValue())
.isAnonymous(Authentication.isAnonymousUser(orgMember.getUserId()))
.sessionHash(Hashing.sha512().hashString(tuple.getT4(), StandardCharsets.UTF_8).toString())
.build();
Expand Down