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')
|
Path = require('path')
|
||||||
_ = require("underscore")
|
|
||||||
|
|
||||||
# These credentials are used for authenticating api requests
|
# These credentials are used for authenticating api requests
|
||||||
# between services that may need to go over public channels
|
# between services that may need to go over public channels
|
||||||
|
@ -427,8 +426,13 @@ if process.env["SHARELATEX_LDAP_HOST"]
|
||||||
ca:ca_paths # e.g.'/etc/ldap/ca_certs.pem'
|
ca:ca_paths # e.g.'/etc/ldap/ca_certs.pem'
|
||||||
|
|
||||||
if settings.externalAuth
|
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
|
# Compiler
|
||||||
# --------
|
# --------
|
||||||
if process.env["SANDBOXED_COMPILES"] == "true"
|
if process.env["SANDBOXED_COMPILES"] == "true"
|
||||||
|
|
Loading…
Reference in a new issue