remove underscore from settings.coffee

This commit is contained in:
Henry Oswald 2016-11-03 11:18:34 +00:00 committed by GitHub
parent 227666087c
commit fa55d8017e

View file

@ -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,7 +426,12 @@ 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
# -------- # --------