mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
Update 'affiliations' feature flag to support Server Pro (#2127)
GitOrigin-RevId: 93633994e052badf73b48e5b10971ea6257503ac
This commit is contained in:
committed by
sharelatex
parent
294ce1a13c
commit
08f8bbce9b
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user