aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/SessionContext.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs
index 86914dea2..049291f7f 100644
--- a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs
@@ -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);
}
}