The Free Software Media System - Server Backend & API
Register IAuthorizationContext correctly
Mark Monteiro18c1823cead3
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex a90f14b1f5..c177989116 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -838,8 +838,7 @@ namespace Emby.Server.ImplementationsserviceCollection.AddSingleton(activityLogRepo);serviceCollection.AddSingleton<IActivityManager>(new ActivityManager(LoggerFactory, activityLogRepo, UserManager));- var authContext = new AuthorizationContext(AuthenticationRepository, UserManager);- serviceCollection.AddSingleton<IAuthorizationContext>(authContext);+ serviceCollection.AddSingleton<IAuthorizationContext, AuthorizationContext>();serviceCollection.AddSingleton<ISessionContext, SessionContext>();serviceCollection.AddSingleton<IAuthService, AuthService>();