Fix samba "read only" and "guest ok" settings not applied correctly.
This commit is contained in:
parent
5623d34f87
commit
f008ec70f9
1 changed files with 3 additions and 1 deletions
|
@ -35,10 +35,12 @@ s:option(Value, "path").titleref = luci.dispatcher.build_url("admin", "system",
|
||||||
s:option(Value, "users").rmempty = true
|
s:option(Value, "users").rmempty = true
|
||||||
|
|
||||||
ro = s:option(Flag, "read_only")
|
ro = s:option(Flag, "read_only")
|
||||||
|
ro.rmempty = false
|
||||||
ro.enabled = "yes"
|
ro.enabled = "yes"
|
||||||
ro.disabled = "no"
|
ro.disabled = "no"
|
||||||
|
|
||||||
go = s:option(Flag, "guest_ok")
|
go = s:option(Flag, "guest_ok")
|
||||||
|
go.rmempty = false
|
||||||
go.enabled = "yes"
|
go.enabled = "yes"
|
||||||
go.disabled = "no"
|
go.disabled = "no"
|
||||||
|
|
||||||
|
@ -51,4 +53,4 @@ dm.rmempty = true
|
||||||
dm.size = 4
|
dm.size = 4
|
||||||
|
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
Loading…
Reference in a new issue