Change null check on UserId to a Guid.Empty check

This commit is contained in:
Claus Vium 2019-01-03 07:58:14 +01:00
parent 86275bcc55
commit efa3a234e9

View file

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