Files: fixed tag new

This commit is contained in:
Maksim Chegulov 2022-12-30 15:15:16 +03:00
parent ce2c92d5ce
commit c215f6ff15
2 changed files with 4 additions and 10 deletions

View File

@ -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,

View File

@ -869,6 +869,10 @@ public class FileMarker
{
cacheFolderId = rootFolderId = shareFolder;
}
else if (rootFolder.RootFolderType == FolderType.VirtualRooms)
{
rootFolderId = await _globalFolder.GetFolderVirtualRoomsAsync<T>(_daoFactory);
}
if (rootFolderId != null)
{