Merge pull request #529 from sharelatex/sk-remove-templates-from-v2

Add `templates` to the `Features.hasFeature` function
This commit is contained in:
Hayden Faulds 2018-05-14 10:57:28 +01:00 committed by GitHub
commit 3fb3daaee7

View file

@ -16,5 +16,7 @@ module.exports = Features =
return Settings.accountMerge? and Settings.overleaf?
when 'custom-togglers'
return Settings.overleaf?
when 'templates'
return !Settings.overleaf?
else
throw new Error("unknown feature: #{feature}")