diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-12-24 02:01:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-24 02:01:06 +0000 |
| commit | cecfdeeec3effa61de2a83b5656059c08536d94e (patch) | |
| tree | b77ae70228a2f62d12b258e9467721bdc4bf44fc /Jellyfin.Server.Implementations/Devices/DeviceManager.cs | |
| parent | fcf5b9b46e7d120904fdafb3df726b1a1309660d (diff) | |
| parent | 076a13abeb344f7a79d81cce030799c8e77dbfaf (diff) | |
Merge branch 'master' into unharden-for-lxc
Diffstat (limited to 'Jellyfin.Server.Implementations/Devices/DeviceManager.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Devices/DeviceManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs index 0655c9813..a55949df8 100644 --- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs +++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs @@ -7,6 +7,7 @@ using Jellyfin.Data.Entities.Security; using Jellyfin.Data.Enums; using Jellyfin.Data.Events; using Jellyfin.Data.Queries; +using Jellyfin.Extensions; using MediaBrowser.Controller.Devices; using MediaBrowser.Controller.Library; using MediaBrowser.Model.Devices; @@ -219,7 +220,7 @@ namespace Jellyfin.Server.Implementations.Devices return true; } - return user.GetPreference(PreferenceKind.EnabledDevices).Contains(deviceId, StringComparer.OrdinalIgnoreCase) + return user.GetPreference(PreferenceKind.EnabledDevices).Contains(deviceId, StringComparison.OrdinalIgnoreCase) || !GetCapabilities(deviceId).SupportsPersistentIdentifier; } |
