Explorar o código

Add feature flag for redirecting SL to v2

Alasdair Smith %!s(int64=8) %!d(string=hai) anos
pai
achega
fc0b9df14c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      services/web/app/coffee/infrastructure/Features.coffee

+ 2 - 0
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}")