Skip to content

Commit 0be284e

Browse files
authored
Registering admin panel routes when admin panel is not disabled. (#8880)
1 parent 56d38d4 commit 0be284e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGetGallery/App_Start/AppActivator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private static void AppPostStart(IAppConfiguration configuration)
248248
// Log unhandled exceptions
249249
GlobalConfiguration.Configuration.Services.Add(typeof(IExceptionLogger), new QuietExceptionLogger());
250250

251-
Routes.RegisterRoutes(RouteTable.Routes, configuration.FeedOnlyMode);
251+
Routes.RegisterRoutes(RouteTable.Routes, configuration.FeedOnlyMode, configuration.AdminPanelEnabled);
252252
AreaRegistration.RegisterAllAreas();
253253

254254
GlobalFilters.Filters.Add(new SendErrorsToTelemetryAttribute { View = "~/Views/Errors/InternalError.cshtml" });

0 commit comments

Comments
 (0)