tweak guid check

Co-authored-by: Bond-009 <bond.009@outlook.com>
pull/7965/head
Jason Dove 2 years ago committed by GitHub
parent d06fda43c1
commit fc74c8eecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save