Update Jellyfin.Api/Controllers/UniversalAudioController.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Niels van Velzen 2022-08-22 17:47:59 +02:00 committed by GitHub
parent 8296f07a39
commit 8422ab687b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ namespace Jellyfin.Api.Controllers
var authorizationInfo = await _authorizationContext.GetAuthorizationInfo(Request).ConfigureAwait(false);
authorizationInfo.DeviceId = deviceId;
if (!userId.HasValue || userId.Equals(Guid.Empty))
if (!userId.HasValue || userId.Value.Equals(Guid.Empty))
{
userId = authorizationInfo.UserId;
}