Add feature flag for github sync

This commit is contained in:
James Allen 2017-11-20 11:48:06 +00:00
parent a97c3ba580
commit 4f905af078

View file

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