瀏覽代碼

Add feature flag for github sync

James Allen 9 年之前
父節點
當前提交
4f905af078
共有 1 個文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      services/web/app/coffee/infrastructure/Features.coffee

+ 2 - 0
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}")