mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove underscore from settings.coffee
This commit is contained in:
parent
227666087c
commit
fa55d8017e
1 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
Path = require('path')
|
||||
_ = require("underscore")
|
||||
|
||||
# These credentials are used for authenticating api requests
|
||||
# between services that may need to go over public channels
|
||||
|
@ -427,7 +426,12 @@ if process.env["SHARELATEX_LDAP_HOST"]
|
|||
ca:ca_paths # e.g.'/etc/ldap/ca_certs.pem'
|
||||
|
||||
if settings.externalAuth
|
||||
settings.nav.header = _.filter settings.nav.header, (button)-> button.url != "/register"
|
||||
results = []
|
||||
for button in settings.nav.header
|
||||
if button.url != "/register"
|
||||
results.push(button)
|
||||
settings.nav.header = results
|
||||
|
||||
|
||||
# Compiler
|
||||
# --------
|
||||
|
|
Loading…
Reference in a new issue