If requestContext is HttpRequest, get the context from it properly.
This commit is contained in:
parent
8eeed82523
commit
1b3fcab6a4
|
@ -45,6 +45,11 @@ namespace Emby.Server.Implementations.HttpServer.Security
|
|||
|
||||
public User GetUser(object requestContext)
|
||||
{
|
||||
if (requestContext is HttpRequest request)
|
||||
{
|
||||
return GetUser(request.HttpContext);
|
||||
}
|
||||
|
||||
return GetUser((HttpContext)requestContext);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user