summaryrefslogtreecommitdiffstats
path: root/tinydns-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-10-27 02:25:48 +0000
committerTed Trask <ttrask01@yahoo.com>2012-10-27 02:25:48 +0000
commit6d8ee557fc7d378d5657babe2b1184089c83b199 (patch)
treeb50448d2a0b26e1e0b2dd384f033510b43e9e4a5 /tinydns-model.lua
parentdcfd4d636ccb195e943cb0dacfb72acc6cc1d7e1 (diff)
downloadacf-tinydns-6d8ee557fc7d378d5657babe2b1184089c83b199.tar.bz2
acf-tinydns-6d8ee557fc7d378d5657babe2b1184089c83b199.tar.xz
Removed unneeded views by updating CFE for autoview
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