From 034e50760e8ef0905434694e4e1740aa923034b9 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 6 Jun 2018 15:41:13 +0100 Subject: [PATCH] Add flag that can disable plans page --- .../app/coffee/Features/Subscription/SubscriptionRouter.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/Subscription/SubscriptionRouter.coffee b/services/web/app/coffee/Features/Subscription/SubscriptionRouter.coffee index e512a1c3dd..a8c715d466 100644 --- a/services/web/app/coffee/Features/Subscription/SubscriptionRouter.coffee +++ b/services/web/app/coffee/Features/Subscription/SubscriptionRouter.coffee @@ -9,7 +9,8 @@ module.exports = apply: (webRouter, privateApiRouter, publicApiRouter) -> return unless Settings.enableSubscriptions - webRouter.get '/user/subscription/plans', SubscriptionController.plansPage + if !Settings.disablePlansPage + webRouter.get '/user/subscription/plans', SubscriptionController.plansPage webRouter.get '/user/subscription', AuthenticationController.requireLogin(), SubscriptionController.userSubscriptionPage