mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-26 07:28:43 +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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue