Skip to content

Commit bca74e0

Browse files
authored
Pass user Id to audit when saving and deleting members. (#18120)
1 parent 1e50714 commit bca74e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Core/Services/MemberService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ public bool Exists(string username)
791791

792792
scope.Notifications.Publish(new MemberSavedNotification(member, evtMsgs).WithStateFrom(savingNotification));
793793

794-
Audit(AuditType.Save, 0, member.Id);
794+
Audit(AuditType.Save, userId, member.Id);
795795

796796
scope.Complete();
797797
return OperationResult.Attempt.Succeed(evtMsgs);
@@ -858,7 +858,7 @@ public void Save(IEnumerable<IMember> members)
858858
scope.WriteLock(Constants.Locks.MemberTree);
859859
DeleteLocked(scope, member, evtMsgs, deletingNotification.State);
860860

861-
Audit(AuditType.Delete, 0, member.Id);
861+
Audit(AuditType.Delete, userId, member.Id);
862862
scope.Complete();
863863

864864
return OperationResult.Attempt.Succeed(evtMsgs);

0 commit comments

Comments
 (0)