summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-07-25 12:41:03 +0000
committerTed Trask <ttrask01@yahoo.com>2008-07-25 12:41:03 +0000
commit28c3123f314c4d8fc7301b1ebd23f5f8054c7d17 (patch)
tree15e6ab36538720c7b2ca23be27c0e882b6a35d9a
parent5f3e0f0ef47c94c39528ec3bf6dc96c281a9aeb6 (diff)
downloadacf-tinydns-28c3123f314c4d8fc7301b1ebd23f5f8054c7d17.tar.bz2
acf-tinydns-28c3123f314c4d8fc7301b1ebd23f5f8054c7d17.tar.xz
Tinydns bug fix
git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1319 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--tinydns-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua
index f623851..148dec6 100644
--- a/tinydns-model.lua
+++ b/tinydns-model.lua
@@ -297,7 +297,7 @@ function createconfigfile(self, configfile, userid)
-- We have to add this file to the allowed list, if there is one
-- FIXME - what do we do here when there is role support?
local perm = getuserpermissions(self, userid)
- if #perm.value.allowed.value then
+ if #perm.value.allowed.value > 0 then
perm.value.allowed.value[#perm.value.allowed.value + 1] = path
setuserpermissions(self, perm)
end