Make publishing and viewing templates separate features

This commit is contained in:
James Allen 2018-08-10 17:16:49 +01:00
parent e760d97cf3
commit ff506b2b03

View file

@ -18,7 +18,9 @@ module.exports = Features =
return Settings.showV2Banner
when 'custom-togglers'
return Settings.overleaf?
when 'templates'
when 'publish-templates'
return true
when 'view-templates'
return !Settings.overleaf?
when 'affiliations'
return Settings?.apis?.v1?.url?