From fc0b9df14ccc30c7fb7ce243fbb1e63bb101d4c2 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Tue, 7 Aug 2018 14:54:23 +0100 Subject: [PATCH] Add feature flag for redirecting SL to v2 --- services/web/app/coffee/infrastructure/Features.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/app/coffee/infrastructure/Features.coffee b/services/web/app/coffee/infrastructure/Features.coffee index ffc60604e6..496bbf1e39 100644 --- a/services/web/app/coffee/infrastructure/Features.coffee +++ b/services/web/app/coffee/infrastructure/Features.coffee @@ -25,5 +25,7 @@ module.exports = Features = when 'rich-text' isEnabled = true # Switch to false to disable Settings.overleaf? and isEnabled + when 'redirect-sl' + return Settings.createV1AccountOnLogin else throw new Error("unknown feature: #{feature}")