Use redirect setting instead of re-using setting that coincidentally would be flipped on the same day

This commit is contained in:
Alasdair Smith 2018-08-08 15:24:20 +01:00
parent fc0b9df14c
commit 985344c0d7

View file

@ -26,6 +26,6 @@ module.exports = Features =
isEnabled = true # Switch to false to disable isEnabled = true # Switch to false to disable
Settings.overleaf? and isEnabled Settings.overleaf? and isEnabled
when 'redirect-sl' when 'redirect-sl'
return Settings.createV1AccountOnLogin return Settings.redirectToV2?
else else
throw new Error("unknown feature: #{feature}") throw new Error("unknown feature: #{feature}")