|
@@ -17,6 +17,10 @@ const publicRegistrationModuleAvailable = fs.existsSync(
|
|
|
`${__dirname}/../../../modules/public-registration`
|
|
`${__dirname}/../../../modules/public-registration`
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+const supportModuleAvailable = fs.existsSync(
|
|
|
|
|
+ `${__dirname}/../../../modules/support`
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
module.exports = Features = {
|
|
module.exports = Features = {
|
|
|
externalAuthenticationSystemUsed() {
|
|
externalAuthenticationSystemUsed() {
|
|
|
return (
|
|
return (
|
|
@@ -61,9 +65,10 @@ module.exports = Features = {
|
|
|
return Settings.enableSaml
|
|
return Settings.enableSaml
|
|
|
case 'link-url':
|
|
case 'link-url':
|
|
|
return Settings.apis.linkedUrlProxy && Settings.apis.linkedUrlProxy.url
|
|
return Settings.apis.linkedUrlProxy && Settings.apis.linkedUrlProxy.url
|
|
|
-
|
|
|
|
|
case 'public-registration':
|
|
case 'public-registration':
|
|
|
return publicRegistrationModuleAvailable
|
|
return publicRegistrationModuleAvailable
|
|
|
|
|
+ case 'support':
|
|
|
|
|
+ return supportModuleAvailable
|
|
|
default:
|
|
default:
|
|
|
throw new Error(`unknown feature: ${feature}`)
|
|
throw new Error(`unknown feature: ${feature}`)
|
|
|
}
|
|
}
|