mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #529 from sharelatex/sk-remove-templates-from-v2
Add `templates` to the `Features.hasFeature` function
This commit is contained in:
commit
3fb3daaee7
1 changed files with 2 additions and 0 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue