Explorar o código

Add feature flag for github sync

James Allen %!s(int64=9) %!d(string=hai) anos
pai
achega
4f905af078
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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}")