From: Steven Barth Date: Thu, 1 Jan 2009 13:33:45 +0000 (+0000) Subject: Fix samba "read only" and "guest ok" settings not applied correctly. X-Git-Tag: 0.8.4~32 X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=0cab54fb461b5daafd78768820858e80f0a6aac1;p=project%2Fluci.git Fix samba "read only" and "guest ok" settings not applied correctly. --- diff --git a/applications/luci-samba/luasrc/model/cbi/samba.lua b/applications/luci-samba/luasrc/model/cbi/samba.lua index 7ef9d239b..f8959eb95 100644 --- a/applications/luci-samba/luasrc/model/cbi/samba.lua +++ b/applications/luci-samba/luasrc/model/cbi/samba.lua @@ -35,10 +35,12 @@ s:option(Value, "path").titleref = luci.dispatcher.build_url("admin", "system", s:option(Value, "users").rmempty = true ro = s:option(Flag, "read_only") +ro.rmempty = false ro.enabled = "yes" ro.disabled = "no" go = s:option(Flag, "guest_ok") +go.rmempty = false go.enabled = "yes" go.disabled = "no" @@ -51,4 +53,4 @@ dm.rmempty = true dm.size = 4 -return m \ No newline at end of file +return m