mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Make publishing and viewing templates separate features
This commit is contained in:
parent
e760d97cf3
commit
ff506b2b03
1 changed files with 3 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue