Merge pull request #1134 from fantom-x/luci-app-samba-allow-homes
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 30 Apr 2017 13:13:50 +0000 (16:13 +0300)
committerGitHub <noreply@github.com>
Sun, 30 Apr 2017 13:13:50 +0000 (16:13 +0300)
luci-app-samba: "Share home-directories" check box

applications/luci-app-samba/luasrc/model/cbi/samba.lua

index 721191a7eed2f4c35434c8e686b81abef9f8c18e..46259e73351a9adb6d7567df0267e321efdf194c 100644 (file)
@@ -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."),