luci-base: dispatcher.uc: apply ACLs to menu tree JSON
authorJo-Philipp Wich <jo@mein.io>
Wed, 2 Nov 2022 09:09:05 +0000 (10:09 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 2 Nov 2022 09:13:41 +0000 (10:13 +0100)
commitc99602e4ac72f4f6410449dd7175d52b974de9cc
tree53284ee44874600012565786e5769bb257080577
parentd967bbaa92ae56692ab449f57ca74f120943e799
luci-base: dispatcher.uc: apply ACLs to menu tree JSON

Add menu tree annotations for node readonly and dependency satisfied state
in order to ensure that unreachable menu nodes are hidden from view.

Fixes: ded8ccf93e ("luci-base-ucode: add initial ucode based LuCI runtime")
Ref: https://forum.openwrt.org/t/x/141426/10
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/ucode/dispatcher.uc