summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-compat/luasrc/view/cbi/footer.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-20 09:37:45 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-20 09:44:14 +0200
commitfd24221d9e99c13fa14ae4b9eaeedac6ec29d5e5 (patch)
tree3ec664aadf783344db4066850b95743ad785a263 /modules/luci-compat/luasrc/view/cbi/footer.htm
parentc48a8d58132b4f175ec0a4b4ec4e15eb199edeb8 (diff)
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>
Diffstat (limited to 'modules/luci-compat/luasrc/view/cbi/footer.htm')
-rw-r--r--modules/luci-compat/luasrc/view/cbi/footer.htm6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/luci-compat/luasrc/view/cbi/footer.htm b/modules/luci-compat/luasrc/view/cbi/footer.htm
index 176f10c5e1..abcc47b920 100644
--- a/modules/luci-compat/luasrc/view/cbi/footer.htm
+++ b/modules/luci-compat/luasrc/view/cbi/footer.htm
@@ -19,15 +19,15 @@
end
if display_apply then
- %><input class="btn cbi-button cbi-button-apply" type="button" value="<%:Save & Apply%>" onclick="cbi_submit(this, 'cbi.apply')"<%=ifattr(not has_writeable_map, "disabled")%> /> <%
+ %><input class="btn cbi-button cbi-button-apply" type="button" value="<%:Save & Apply%>" onclick="cbi_submit(this, 'cbi.apply')"<%=ifattr(not writable, "disabled")%> /> <%
end
if display_save then
- %><input class="btn cbi-button cbi-button-save" type="submit" value="<%:Save%>"<%=ifattr(not has_writeable_map, "disabled")%> /> <%
+ %><input class="btn cbi-button cbi-button-save" type="submit" value="<%:Save%>"<%=ifattr(not writable, "disabled")%> /> <%
end
if display_reset then
- %><input class="btn cbi-button cbi-button-reset" type="button" value="<%:Reset%>" onclick="location.href='<%=REQUEST_URI%>'"<%=ifattr(not has_writeable_map, "disabled")%> /> <%
+ %><input class="btn cbi-button cbi-button-reset" type="button" value="<%:Reset%>" onclick="location.href='<%=REQUEST_URI%>'"<%=ifattr(not writable, "disabled")%> /> <%
end
%></div><%