From 49e371e550ae059425d491eece84ec0f516bee29 Mon Sep 17 00:00:00 2001 From: Maksim Chegulov Date: Mon, 2 Sep 2024 18:11:00 +0300 Subject: [PATCH] fix Bug 69785 --- .../ASC.Files/Core/Core/History/ActionInterpreter.cs | 2 +- .../Core/Resources/FilesCommonResource.Designer.cs | 10 +++++++++- .../ASC.Files/Core/Resources/FilesCommonResource.resx | 3 +++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/products/ASC.Files/Core/Core/History/ActionInterpreter.cs b/products/ASC.Files/Core/Core/History/ActionInterpreter.cs index fc2bcb6084..0b2273b530 100644 --- a/products/ASC.Files/Core/Core/History/ActionInterpreter.cs +++ b/products/ASC.Files/Core/Core/History/ActionInterpreter.cs @@ -55,7 +55,7 @@ public async ValueTask InterpretAsync(DbAuditEvent @event, IServic if (!string.IsNullOrEmpty(data.InitiatorName)) { initiatorName = initiatorId == ASC.Core.Configuration.Constants.Guest.ID && data.InitiatorName != AuditReportResource.GuestAccount - ? $"{data.InitiatorName} ({AuditReportResource.GuestAccount})" + ? $"{data.InitiatorName} ({FilesCommonResource.ExternalUser})" : data.InitiatorName; } diff --git a/products/ASC.Files/Core/Resources/FilesCommonResource.Designer.cs b/products/ASC.Files/Core/Resources/FilesCommonResource.Designer.cs index 5a21b3435c..1b3e476a09 100644 --- a/products/ASC.Files/Core/Resources/FilesCommonResource.Designer.cs +++ b/products/ASC.Files/Core/Resources/FilesCommonResource.Designer.cs @@ -1,7 +1,6 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -987,6 +986,15 @@ public static string Everyone { } } + /// + /// Looks up a localized string similar to External user. + /// + public static string ExternalUser { + get { + return ResourceManager.GetString("ExternalUser", resourceCulture); + } + } + /// /// Looks up a localized string similar to Link to fill out. /// diff --git a/products/ASC.Files/Core/Resources/FilesCommonResource.resx b/products/ASC.Files/Core/Resources/FilesCommonResource.resx index 652c04603d..a89855fa11 100644 --- a/products/ASC.Files/Core/Resources/FilesCommonResource.resx +++ b/products/ASC.Files/Core/Resources/FilesCommonResource.resx @@ -559,4 +559,7 @@ Highest compatibility with docx, xlsx, pptx. Form number + + External user + \ No newline at end of file