luci-compat: apply permission constraints from dispatcher
authorJo-Philipp Wich <jo@mein.io>
Mon, 20 Apr 2020 07:37:45 +0000 (09:37 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 20 Apr 2020 07:44:14 +0000 (09:44 +0200)
commitfd24221d9e99c13fa14ae4b9eaeedac6ec29d5e5
tree3ec664aadf783344db4066850b95743ad785a263
parentc48a8d58132b4f175ec0a4b4ec4e15eb199edeb8
luci-compat: apply permission constraints from dispatcher

Since template scopes aren't shared we cannot pass the writable state from
the map templates to the page footer.

Fixes: #3937
Fixes: ffd627f2a ("luci-compat: disable legacy cbi forms on insufficient ACLs")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-compat/luasrc/view/cbi/footer.htm
modules/luci-compat/luasrc/view/cbi/map.htm