Просмотр исходного кода

Add feature flag for github sync

James Allen 9 лет назад
Родитель
Сommit
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
 		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}")