mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
check that nav.header is configured
This commit is contained in:
parent
8be95a5169
commit
f1ce0b4068
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue