Files: hid trash for user

This commit is contained in:
Maksim Chegulov 2022-10-13 15:34:35 +03:00
parent 8baaa2b83e
commit 5a7d46a6fd

View File

@ -147,7 +147,7 @@ public class FoldersControllerHelper<T> : FilesHelperBase<T>
yield return await _globalFolderHelper.FolderTemplatesAsync;
}
if (!withoutTrash)
if (!withoutTrash && !IsVisitor)
{
yield return (int)_globalFolderHelper.FolderTrash;
}