From c215f6ff15576e6afc28ed2fe75168c8b6ac3d17 Mon Sep 17 00:00:00 2001 From: MaksimChegulov Date: Fri, 30 Dec 2022 15:15:16 +0300 Subject: [PATCH] Files: fixed tag new --- products/ASC.Files/Core/Core/Security/FileSecurity.cs | 10 ---------- products/ASC.Files/Core/Utils/FileMarker.cs | 4 ++++ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/products/ASC.Files/Core/Core/Security/FileSecurity.cs b/products/ASC.Files/Core/Core/Security/FileSecurity.cs index 2a4c4b8786..018aa27734 100644 --- a/products/ASC.Files/Core/Core/Security/FileSecurity.cs +++ b/products/ASC.Files/Core/Core/Security/FileSecurity.cs @@ -437,16 +437,6 @@ public class FileSecurity : IFileSecurity case FolderType.VirtualRooms: defaultRecords = new[] { - new FileShareRecord - { - Level = int.MaxValue, - EntryId = entry.Id, - EntryType = entry.FileEntryType, - Share = FileShare.Read, - Subject = WebItemManager.DocumentsProductID, - TenantId = _tenantManager.GetCurrentTenant().Id, - Owner = entry.RootCreateBy - }, new FileShareRecord { Level = int.MaxValue, diff --git a/products/ASC.Files/Core/Utils/FileMarker.cs b/products/ASC.Files/Core/Utils/FileMarker.cs index 447927dd82..d15bd77c09 100644 --- a/products/ASC.Files/Core/Utils/FileMarker.cs +++ b/products/ASC.Files/Core/Utils/FileMarker.cs @@ -869,6 +869,10 @@ public class FileMarker { cacheFolderId = rootFolderId = shareFolder; } + else if (rootFolder.RootFolderType == FolderType.VirtualRooms) + { + rootFolderId = await _globalFolder.GetFolderVirtualRoomsAsync(_daoFactory); + } if (rootFolderId != null) {