check that nav.header is configured

This commit is contained in:
Shane Kilkelly 2016-11-04 15:14:33 +00:00
parent 8be95a5169
commit f1ce0b4068

View file

@ -425,14 +425,14 @@ if process.env["SHARELATEX_LDAP_HOST"]
rejectUnauthorized: process.env["SHARELATEX_LDAP_TLS_OPTS_REJECT_UNAUTH"] == "true"
ca:ca_paths # e.g.'/etc/ldap/ca_certs.pem'
if settings.externalAuth
if settings.externalAuth and settings?.nav?.header?
results = []
for button in settings.nav.header
if button.url != "/register"
results.push(button)
settings.nav.header = results
# Compiler
# --------
if process.env["SANDBOXED_COMPILES"] == "true"