소스 검색

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}")