From 0130e2b08c018442c7e28b16180f215af65e9062 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 25 Jan 2020 23:28:24 +0100 Subject: themes: render menu even when not logged in Ref: #3563 Signed-off-by: Jo-Philipp Wich --- themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/luci-theme-openwrt') diff --git a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm index 9754e8b612..a5e64cac5a 100644 --- a/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm @@ -168,7 +168,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 = ''; -- cgit v1.2.3