diff --git a/products/ASC.Files/Core/Core/Security/FileSecurity.cs b/products/ASC.Files/Core/Core/Security/FileSecurity.cs index 057bc879cb..82e87e0dee 100644 --- a/products/ASC.Files/Core/Core/Security/FileSecurity.cs +++ b/products/ASC.Files/Core/Core/Security/FileSecurity.cs @@ -1071,7 +1071,8 @@ FilesSecurityActions.Rename or action == FilesSecurityActions.Lock || action == FilesSecurityActions.Move || action == FilesSecurityActions.Duplicate || - action == FilesSecurityActions.EditHistory) && file != null ) + action == FilesSecurityActions.EditHistory || + action == FilesSecurityActions.Embed) && file != null ) { var parentFolders = await GetFileParentFolders(file.ParentId); if (parentFolders != null) diff --git a/products/ASC.Files/Core/Utils/EntryManager.cs b/products/ASC.Files/Core/Utils/EntryManager.cs index ccf6ae03f9..abaa4c074b 100644 --- a/products/ASC.Files/Core/Utils/EntryManager.cs +++ b/products/ASC.Files/Core/Utils/EntryManager.cs @@ -250,7 +250,6 @@ public class EntryManager(IDaoFactory daoFactory, FileSharing fileSharing, IQuotaService quotaService, TenantManager tenantManager, - ExternalShare externalShare, FileChecker fileChecker, IDistributedCache distributedCache, NotifyClient notifyClient)