From 08f8bbce9b5fafe3a954ccac0d85f3836ecfdc78 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Mon, 9 Sep 2019 10:31:43 +0200 Subject: [PATCH] Update 'affiliations' feature flag to support Server Pro (#2127) GitOrigin-RevId: 93633994e052badf73b48e5b10971ea6257503ac --- services/web/app/src/infrastructure/Features.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/infrastructure/Features.js b/services/web/app/src/infrastructure/Features.js index cee728dfbf..f1010f3100 100644 --- a/services/web/app/src/infrastructure/Features.js +++ b/services/web/app/src/infrastructure/Features.js @@ -43,7 +43,10 @@ module.exports = Features = { case 'view-templates': return Settings.overleaf == null case 'affiliations': - return Settings.apis.v1 != null + // Checking both properties is needed for the time being to allow + // enabling the feature in web-api and disabling in Server Pro + // see https://github.com/overleaf/web-internal/pull/2127 + return Settings.apis.v1 && !!Settings.apis.v1.url case 'redirect-sl': return Settings.redirectToV2 != null case 'overleaf-integration':