diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-01-25 23:28:24 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-25 23:28:24 +0100 |
commit | 0130e2b08c018442c7e28b16180f215af65e9062 (patch) | |
tree | 476a9269e01e32d7ca2c3997e7d2da0a87eaf6bd /themes/luci-theme-bootstrap/luasrc | |
parent | 9939fc5a26d07da4756497bb6a7dc51dcf379e98 (diff) |
themes: render menu even when not logged in
Ref: #3563
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-bootstrap/luasrc')
-rw-r--r-- | themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/json-menu.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/json-menu.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/json-menu.htm index b38406f65a..9d58ba2dba 100644 --- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/json-menu.htm +++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/json-menu.htm @@ -99,7 +99,7 @@ } document.addEventListener('luci-loaded', function(ev) { - var tree = <%= luci.http.write_json(luci.dispatcher.context.authsession and luci.dispatcher.menu_json() or {}) %>, + var tree = <%= luci.http.write_json(luci.dispatcher.menu_json() or {}) %>, node = tree, url = ''; |