Skip to content

Commit

Permalink
fixed missing initiator id in history when editing a file
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimChegulov committed Nov 29, 2024
1 parent 44c52d4 commit 50ece62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions products/ASC.Files/Core/Core/History/ActionInterpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public async ValueTask<HistoryEntry> InterpretAsync(DbAuditEvent @event, FileEnt
var initiatorId = @event.UserId ?? ASC.Core.Configuration.Constants.Guest.ID;
string initiatorName = null;

if (!string.IsNullOrEmpty(data?.InitiatorName))
if (!string.IsNullOrEmpty(data?.InitiatorName) && initiatorId == ASC.Core.Configuration.Constants.Guest.ID)
{
initiatorName = initiatorId == ASC.Core.Configuration.Constants.Guest.ID && data.InitiatorName != AuditReportResource.GuestAccount
initiatorName = data.InitiatorName != AuditReportResource.GuestAccount
? $"{data.InitiatorName} ({FilesCommonResource.ExternalUser})"
: data.InitiatorName;
}
Expand Down

0 comments on commit 50ece62

Please sign in to comment.