diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-10-27 02:25:48 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-10-27 02:25:48 +0000 |
commit | 6d8ee557fc7d378d5657babe2b1184089c83b199 (patch) | |
tree | b50448d2a0b26e1e0b2dd384f033510b43e9e4a5 /tinydns-model.lua | |
parent | dcfd4d636ccb195e943cb0dacfb72acc6cc1d7e1 (diff) | |
download | acf-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.lua | 8 |
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 |