aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-21 04:17:24 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-21 04:17:24 +0000
commit2d7d846152a0ffe3f4977653ac913f5372cd7bbe (patch)
tree446a97fc7007c7674b96f23a1dbc409677d6720b /util/pubsub.lua
parent67686e41f4dc4c99c24ad8eddd49c67f6365c42b (diff)
downloadprosody-2d7d846152a0ffe3f4977653ac913f5372cd7bbe.tar.gz
prosody-2d7d846152a0ffe3f4977653ac913f5372cd7bbe.zip
util.pubsub: Fix nil global access in get_nodes()
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index b12e5246..1363bcb5 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -235,7 +235,7 @@ end
function service:get_nodes(actor)
-- Access checking
- if not self:may(node, actor, "get_nodes") then
+ if not self:may(nil, actor, "get_nodes") then
return false, "forbidden";
end
--