From dab8106dfff155bddd97c9305f260fb6b046c727 Mon Sep 17 00:00:00 2001 From: Andrey Savihin Date: Fri, 2 Feb 2024 11:56:22 +0300 Subject: [PATCH] ASC.Files: DocumentService: Configuration: porting bug fix 66304 --- .../Core/Services/DocumentService/Configuration.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/products/ASC.Files/Core/Services/DocumentService/Configuration.cs b/products/ASC.Files/Core/Services/DocumentService/Configuration.cs index c17838d4ac6..68358b05b52 100644 --- a/products/ASC.Files/Core/Services/DocumentService/Configuration.cs +++ b/products/ASC.Files/Core/Services/DocumentService/Configuration.cs @@ -1012,8 +1012,6 @@ public class LogoConfig { private readonly CommonLinkUtility _commonLinkUtility; - private readonly FileUtility _fileUtility; - private readonly TenantLogoHelper _tenantLogoHelper; private Configuration _configuration; @@ -1022,10 +1020,7 @@ public string Image { get { - var fillingForm = _fileUtility.CanWebRestrictedEditing(_configuration.Document.Title); - return _configuration.EditorType == EditorType.Embedded - || fillingForm ? _commonLinkUtility.GetFullAbsolutePath(_tenantLogoHelper.GetLogo(WhiteLabelLogoType.DocsEditorEmbed).Result) : _commonLinkUtility.GetFullAbsolutePath(_tenantLogoHelper.GetLogo(WhiteLabelLogoType.DocsEditor).Result); } @@ -1055,12 +1050,10 @@ public string Url public LogoConfig( CommonLinkUtility commonLinkUtility, - TenantLogoHelper tenantLogoHelper, - FileUtility fileUtility) + TenantLogoHelper tenantLogoHelper) { _commonLinkUtility = commonLinkUtility; _tenantLogoHelper = tenantLogoHelper; - _fileUtility = fileUtility; } internal void SetConfiguration(Configuration configuration)