Remove some unused client capabilities and sync code (#10812)

This commit is contained in:
Niels van Velzen
2024-01-06 21:33:48 +01:00
committed by GitHub
parent 084df5a943
commit 55916a09eb
13 changed files with 4 additions and 63 deletions

View File

@@ -418,15 +418,6 @@ namespace Emby.Server.Implementations.Dto
{
dto.PlayAccess = item.GetPlayAccess(user);
}
if (options.ContainsField(ItemFields.BasicSyncInfo))
{
var userCanSync = user is not null && user.HasPermission(PermissionKind.EnableContentDownloading);
if (userCanSync && item.SupportsExternalTransfer)
{
dto.SupportsSync = true;
}
}
}
private static int GetChildCount(Folder folder, User user)