diff --git a/services/web/app/src/infrastructure/Features.js b/services/web/app/src/infrastructure/Features.js index 254e289986..2300a8ff8f 100644 --- a/services/web/app/src/infrastructure/Features.js +++ b/services/web/app/src/infrastructure/Features.js @@ -70,7 +70,7 @@ const Features = { case 'oauth': return Boolean(Settings.oauth) case 'templates-server-pro': - return !Settings.overleaf + return Boolean(Settings.templates) case 'affiliations': case 'analytics': return Boolean(_.get(Settings, ['apis', 'v1', 'url'])) diff --git a/services/web/test/unit/src/infrastructure/FeaturesTests.js b/services/web/test/unit/src/infrastructure/FeaturesTests.js index acfa3cafd1..2dee271997 100644 --- a/services/web/test/unit/src/infrastructure/FeaturesTests.js +++ b/services/web/test/unit/src/infrastructure/FeaturesTests.js @@ -49,7 +49,6 @@ describe('Features', function () { describe('without any settings', function () { it('should return true', function () { expect(this.Features.hasFeature('registration-page')).to.be.true - expect(this.Features.hasFeature('templates-server-pro')).to.be.true }) it('should return false', function () { expect(this.Features.hasFeature('registration')).to.be.false @@ -64,6 +63,7 @@ describe('Features', function () { expect(this.Features.hasFeature('overleaf-integration')).to.be.false expect(this.Features.hasFeature('references')).to.be.false expect(this.Features.hasFeature('saml')).to.be.false + expect(this.Features.hasFeature('templates-server-pro')).to.be.false }) }) describe('with settings', function () {