mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 23:30:50 +02:00
Change null check on UserId to a Guid.Empty check
This commit is contained in:
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…
Reference in a new issue