From 28c3123f314c4d8fc7301b1ebd23f5f8054c7d17 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 25 Jul 2008 12:41:03 +0000 Subject: Tinydns bug fix git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1319 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-model.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3