summaryrefslogtreecommitdiffstats
path: root/tinydns-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tinydns-model.lua')
-rw-r--r--tinydns-model.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua
index 9c239c6..c3d192c 100644
--- a/tinydns-model.lua
+++ b/tinydns-model.lua
@@ -396,11 +396,11 @@ function getuserpermissions(self, userid)
local cnffile = {}
recursedir(configdir, cnffile)
table.sort(cnffile)
- local allowed = cfe({ type="multi", value=allowedlist, label="TinyDNS Permissions", option=cnffile, descr="If no permissions are defined, then all are allowed" })
+ local allowed = cfe({ type="multi", value=allowedlist, label="TinyDNS Permissions", option=cnffile, descr="If no permissions are defined, then all are allowed", seq=1 })
if #cnffile == 0 then
allowed.errtxt = "No domains defined"
end
- local user = cfe({ value=userid, label="User Name" })
+ local user = cfe({ value=userid, label="User Name", readonly=true, seq=0 })
local output = cfe({ type="group", value={userid=user, allowed=allowed}, label="TinyDNS Permissions" })
validateuserpermissions(self, output)
return output
@@ -426,11 +426,11 @@ function getrolepermissions(self, role)
local cnffile = {}
recursedir(configdir, cnffile)
table.sort(cnffile)
- local allowed = cfe({ type="multi", value=allowedlist, label="TinyDNS Permissions", option=cnffile, descr="If no permissions are defined, then all are allowed" })
+ local allowed = cfe({ type="multi", value=allowedlist, label="TinyDNS Permissions", option=cnffile, descr="If no permissions are defined, then all are allowed", seq=1 })
if #cnffile == 0 then
allowed.errtxt = "No domains defined"
end
- local rol = cfe({ value=role, label="Role" })
+ local rol = cfe({ value=role, label="Role", readonly=true, seq=0 })
local output = cfe({ type="group", value={role=rol, allowed=allowed}, label="TinyDNS Permissions" })
validaterolepermissions(self, output)
return output