Allow empty user id when getting device list (#11633)
This commit is contained in:
parent
2cb052a119
commit
a5d60c4521
|
@ -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 })
|
.SelectMany(d => dbContext.DeviceOptions.Where(o => o.DeviceId == d.DeviceId).DefaultIfEmpty(), (d, o) => new { Device = d, Options = o })
|
||||||
.AsAsyncEnumerable();
|
.AsAsyncEnumerable();
|
||||||
|
|
||||||
if (userId.HasValue)
|
if (!userId.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
var user = _userManager.GetUserById(userId.Value);
|
var user = _userManager.GetUserById(userId.Value);
|
||||||
if (user is null)
|
if (user is null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user