فهرست منبع

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