From 109d6df303bf26a16ca1a611bef623b815b1345c Mon Sep 17 00:00:00 2001 From: MaksimChegulov Date: Tue, 27 Dec 2022 12:36:20 +0300 Subject: [PATCH] Files: changed check --- .../Core/Services/DocumentService/DocumentServiceHelper.cs | 2 +- products/ASC.Files/Core/Utils/EntryManager.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/products/ASC.Files/Core/Services/DocumentService/DocumentServiceHelper.cs b/products/ASC.Files/Core/Services/DocumentService/DocumentServiceHelper.cs index 31b54ccead..61c79e58c4 100644 --- a/products/ASC.Files/Core/Services/DocumentService/DocumentServiceHelper.cs +++ b/products/ASC.Files/Core/Services/DocumentService/DocumentServiceHelper.cs @@ -317,7 +317,7 @@ public class DocumentServiceHelper configuration.Document.Title += $" ({file.CreateOnString})"; } - if (FileUtility.GetFileExtension(file.Title) == ".oform") + if (_fileUtility.CanWebRestrictedEditing(file.Title)) { var linkDao = _daoFactory.GetLinkDao(); var sourceId = await linkDao.GetSourceAsync(file.Id.ToString()); diff --git a/products/ASC.Files/Core/Utils/EntryManager.cs b/products/ASC.Files/Core/Utils/EntryManager.cs index 987611a450..1fef3d9ba1 100644 --- a/products/ASC.Files/Core/Utils/EntryManager.cs +++ b/products/ASC.Files/Core/Utils/EntryManager.cs @@ -1111,7 +1111,7 @@ public class EntryManager public async Task LinkedForMeAsync(File file) { - if (file == null || FileUtility.GetFileExtension(file.Title) != ".oform") + if (file == null || !_fileUtility.CanWebRestrictedEditing(file.Title)) { return false; }