|
@@ -8,5 +8,7 @@ module.exports = Features =
|
|
|
switch feature
|
|
switch feature
|
|
|
when 'registration'
|
|
when 'registration'
|
|
|
return not Features.externalAuthenticationSystemUsed()
|
|
return not Features.externalAuthenticationSystemUsed()
|
|
|
|
|
+ when 'github-sync'
|
|
|
|
|
+ return not Settings.disableGithubSync
|
|
|
else
|
|
else
|
|
|
throw new Error("unknown feature: #{feature}")
|
|
throw new Error("unknown feature: #{feature}")
|