summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2017-04-30 16:13:50 +0300
committerGitHub <noreply@github.com>2017-04-30 16:13:50 +0300
commit1cce2e059bc2579e57d13cf61516d41dad12143c (patch)
treeea23a18f471936971c14532afbb5f9852116f3f2
parent1497d4ad480be2d047b6523ef8b68d051fac04a2 (diff)
parente31b6e9379b944f8e09f87dc8a55360ca24f3080 (diff)
Merge pull request #1134 from fantom-x/luci-app-samba-allow-homes
luci-app-samba: "Share home-directories" check box
-rw-r--r--applications/luci-app-samba/luasrc/model/cbi/samba.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-samba/luasrc/model/cbi/samba.lua b/applications/luci-app-samba/luasrc/model/cbi/samba.lua
index 721191a7e..46259e733 100644
--- a/applications/luci-app-samba/luasrc/model/cbi/samba.lua
+++ b/applications/luci-app-samba/luasrc/model/cbi/samba.lua
@@ -13,9 +13,10 @@ s:tab("template", translate("Edit Template"))
s:taboption("general", Value, "name", translate("Hostname"))
s:taboption("general", Value, "description", translate("Description"))
s:taboption("general", Value, "workgroup", translate("Workgroup"))
-s:taboption("general", Value, "homes", translate("Share home-directories"),
+h = s:taboption("general", Flag, "homes", translate("Share home-directories"),
translate("Allow system users to reach their home directories via " ..
"network shares"))
+h.rmempty = false
tmpl = s:taboption("template", Value, "_tmpl",
translate("Edit the template that is used for generating the samba configuration."),