|
|
@@ -4,10 +4,6 @@ module.exports = Features =
|
|
|
externalAuthenticationSystemUsed: ->
|
|
|
Settings.ldap? or Settings.saml? or Settings.overleaf?.oauth?
|
|
|
|
|
|
- richTextEnabled: ->
|
|
|
- isEnabled = true # Switch to false to disable
|
|
|
- Settings.overleaf? and isEnabled
|
|
|
-
|
|
|
hasFeature: (feature) ->
|
|
|
switch feature
|
|
|
when 'homepage'
|
|
|
@@ -26,5 +22,8 @@ module.exports = Features =
|
|
|
return !Settings.overleaf?
|
|
|
when 'affiliations'
|
|
|
return Settings?.apis?.v1?.url?
|
|
|
+ when 'rich-text'
|
|
|
+ isEnabled = false # Switch to false to disable
|
|
|
+ Settings.overleaf? and isEnabled
|
|
|
else
|
|
|
throw new Error("unknown feature: #{feature}")
|