summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-samba/luasrc/model/cbi
diff options
context:
space:
mode:
authorfantom-x <fantom-x@users.noreply.github.com>2017-04-29 16:53:08 -0400
committerfantom-x <fantom-x@users.noreply.github.com>2017-04-29 16:53:08 -0400
commitd62cb8f6158e424aa38b229ff6c2c8de0251fe2b (patch)
treee7ac1a26af3c02179daba56b2be94ea372f2e527 /applications/luci-app-samba/luasrc/model/cbi
parent1497d4ad480be2d047b6523ef8b68d051fac04a2 (diff)
luci-app-samba: add "Browsable" checkbox to the "Network Shares" page for each share
Signed-off-by: Marc Benoit marcb6218@gmail.com
Diffstat (limited to 'applications/luci-app-samba/luasrc/model/cbi')
-rw-r--r--applications/luci-app-samba/luasrc/model/cbi/samba.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-app-samba/luasrc/model/cbi/samba.lua b/applications/luci-app-samba/luasrc/model/cbi/samba.lua
index 721191a7ee..13abbc1a45 100644
--- a/applications/luci-app-samba/luasrc/model/cbi/samba.lua
+++ b/applications/luci-app-samba/luasrc/model/cbi/samba.lua
@@ -53,6 +53,12 @@ ro.rmempty = false
ro.enabled = "yes"
ro.disabled = "no"
+br = s:option(Flag, "browseable", translate("Browseable"))
+br.rmempty = false
+br.default = "yes"
+br.enabled = "yes"
+br.disabled = "no"
+
go = s:option(Flag, "guest_ok", translate("Allow guests"))
go.rmempty = false
go.enabled = "yes"