mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add feature flag for github sync
This commit is contained in:
parent
a97c3ba580
commit
4f905af078
1 changed files with 2 additions and 0 deletions
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue