diff options
| author | crobibero <cody@robibe.ro> | 2024-05-17 13:51:39 -0400 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2024-05-17 13:51:39 -0400 |
| commit | 77c3ddc7caf0c1544502d0e742ad3f07f5c2db75 (patch) | |
| tree | 002f5ac1ef6cf17404be840437b49fbc1045e807 /Jellyfin.Server.Implementations/Devices | |
| parent | 9b978578ce62fbb05f0d3e9d5f8e046874fe4565 (diff) | |
Backport pull request #11633 from jellyfin/release-10.9.z
Allow empty user id when getting device list
Original-merge: a5d60c4521dd94b084fd8eb7ca99f93d4eda99fa
Merged-by: crobibero <cody@robibe.ro>
Backported-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Jellyfin.Server.Implementations/Devices')
| -rw-r--r-- | Jellyfin.Server.Implementations/Devices/DeviceManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs index 5e5d52b6b..d8d1b6fa8 100644 --- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs +++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs @@ -179,7 +179,7 @@ namespace Jellyfin.Server.Implementations.Devices .SelectMany(d => dbContext.DeviceOptions.Where(o => o.DeviceId == d.DeviceId).DefaultIfEmpty(), (d, o) => new { Device = d, Options = o }) .AsAsyncEnumerable(); - if (userId.HasValue) + if (!userId.IsNullOrEmpty()) { var user = _userManager.GetUserById(userId.Value); if (user is null) |
