Skip to content

The Free Software Media System - Server Backend & API

tweak guid check

Jason Dovefc74c8eecf5b
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs
index 0b1ef00224..bfa4f9fe72 100644
--- a/Jellyfin.Api/Controllers/ItemsController.cs
+++ b/Jellyfin.Api/Controllers/ItemsController.cs
@@ -246,7 +246,7 @@ namespace Jellyfin.Api.Controllers
{
var auth = await _authContext.GetAuthorizationInfo(Request).ConfigureAwait(false);
- var user = !auth.IsApiKey && userId.HasValue && !userId.Equals(Guid.Empty)
+ var user = !auth.IsApiKey && userId.HasValue && !userId.Value.Equals(default)
? _userManager.GetUserById(userId.Value)
: null;