Files: added archive folder display for free users

This commit is contained in:
Maksim Chegulov 2022-10-21 12:55:54 +03:00
parent 22a24de659
commit a0975f1d98
2 changed files with 1 additions and 10 deletions

View File

@ -379,11 +379,6 @@ public class GlobalFolder
return default;
}
if (_userManager.IsUser(_authContext.CurrentAccount.ID))
{
return default;
}
var key = $"archive/{_tenantManager.GetCurrentTenant().Id}";
if (!DocSpaceFolderCache.TryGetValue(key, out var result))

View File

@ -157,11 +157,7 @@ public class FoldersControllerHelper<T> : FilesHelperBase<T>
if (!_coreBaseSettings.DisableDocSpace)
{
yield return await _globalFolderHelper.FolderVirtualRoomsAsync;
if (!IsUser)
{
yield return await _globalFolderHelper.FolderArchiveAsync;
}
yield return await _globalFolderHelper.FolderArchiveAsync;
}
}