summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-samba/luasrc/model
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-04-30 16:14:15 +0300
committerGitHub <noreply@github.com>2017-04-30 16:14:15 +0300
commitc36201efb020bd29a0be4cbf7e5525254d47a748 (patch)
tree95aad39e9c6c94dbaf4cb2a6250bb8054495cb75 /applications/luci-app-samba/luasrc/model
parent1cce2e059bc2579e57d13cf61516d41dad12143c (diff)
parentd62cb8f6158e424aa38b229ff6c2c8de0251fe2b (diff)
Merge pull request #1133 from fantom-x/luci-app-samba-browseable
luci-app-samba: add "Browsable" checkbox to each share
Diffstat (limited to 'applications/luci-app-samba/luasrc/model')
-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 46259e733..68a5b3a9b 100644
--- a/applications/luci-app-samba/luasrc/model/cbi/samba.lua
+++ b/applications/luci-app-samba/luasrc/model/cbi/samba.lua
@@ -54,6 +54,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"