Allow empty user id when getting device list (#11633)

pull/11669/head
Cody Robibero 1 month ago committed by GitHub
parent 2cb052a119
commit a5d60c4521
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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)

Loading…
Cancel
Save