affiliations flag checks Settings.overleaf (#2080)

GitOrigin-RevId: c0dc5a8c1e6ad6c5ddb055ccfc21c901d66a9827
This commit is contained in:
Miguel Serrano 2019-08-15 15:47:31 +02:00 committed by sharelatex
parent 9833f1ec93
commit e8790a638c
2 changed files with 4 additions and 1 deletions

View file

@ -43,7 +43,7 @@ module.exports = Features = {
case 'view-templates':
return Settings.overleaf == null
case 'affiliations':
return !!Settings.apis.v1.url
return Settings.overleaf != null
case 'redirect-sl':
return Settings.redirectToV2 != null
case 'overleaf-integration':

View file

@ -155,3 +155,6 @@ module.exports =
name: 'google'
},
# setting to true since many features are enabled/disabled after availability of this
# property (check Features.js)
overleaf: true