From 4f905af0782bbfbcb6967e27fd9443ab5096c4ce Mon Sep 17 00:00:00 2001 From: James Allen Date: Mon, 20 Nov 2017 11:48:06 +0000 Subject: [PATCH] Add feature flag for github sync --- services/web/app/coffee/infrastructure/Features.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/app/coffee/infrastructure/Features.coffee b/services/web/app/coffee/infrastructure/Features.coffee index e4a8fefbe8..9bf800f55f 100644 --- a/services/web/app/coffee/infrastructure/Features.coffee +++ b/services/web/app/coffee/infrastructure/Features.coffee @@ -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}")