Change null check on UserId to a Guid.Empty check

pull/702/head
Claus Vium 6 years ago
parent 86275bcc55
commit efa3a234e9

@ -686,7 +686,7 @@ namespace MediaBrowser.Api.Playback
};
var auth = AuthorizationContext.GetAuthorizationInfo(Request);
if (auth.UserId != null)
if (!auth.UserId.Equals(Guid.Empty))
{
state.User = UserManager.GetUserById(auth.UserId);
}

Loading…
Cancel
Save