diff options
Diffstat (limited to 'tinydns-model.lua')
-rw-r--r-- | tinydns-model.lua | 2 |
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 |