luci-base: make logout link depend on luci-base ACL
authorJo-Philipp Wich <jo@mein.io>
Sat, 25 Apr 2020 11:52:15 +0000 (13:52 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 25 Apr 2020 11:52:15 +0000 (13:52 +0200)
Fixes: #3966
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/share/luci/menu.d/luci-base.json

index daad2f633af6d373f430aef5074a37e2170d18ef..9b32048be6ace8bd16b2ffb8c22875e1854ed72f 100644 (file)
@@ -84,6 +84,9 @@
                        "type": "call",
                        "module": "luci.controller.admin.index",
                        "function": "action_logout"
+               },
+               "depends": {
+                       "acl": [ "luci-base" ]
                }
        },