Pass user Id to audit when saving and deleting members. (#18120)

This commit is contained in:
Andy Butland
2025-01-29 10:14:34 +01:00
committed by GitHub
parent 1e50714d1b
commit bca74e0277

View File

@@ -791,7 +791,7 @@ namespace Umbraco.Cms.Core.Services
scope.Notifications.Publish(new MemberSavedNotification(member, evtMsgs).WithStateFrom(savingNotification));
Audit(AuditType.Save, 0, member.Id);
Audit(AuditType.Save, userId, member.Id);
scope.Complete();
return OperationResult.Attempt.Succeed(evtMsgs);
@@ -858,7 +858,7 @@ namespace Umbraco.Cms.Core.Services
scope.WriteLock(Constants.Locks.MemberTree);
DeleteLocked(scope, member, evtMsgs, deletingNotification.State);
Audit(AuditType.Delete, 0, member.Id);
Audit(AuditType.Delete, userId, member.Id);
scope.Complete();
return OperationResult.Attempt.Succeed(evtMsgs);