util.pubsub: Fix nil global access in get_nodes()

Tue, 21 Dec 2010 04:17:24 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 21 Dec 2010 04:17:24 +0000
changeset 3917
263a133bdf5a
parent 3916
ffe5a0d36f57
child 3918
f30c5bad29b8

util.pubsub: Fix nil global access in get_nodes()

util/pubsub.lua file | annotate | diff | comparison | revisions
--- a/util/pubsub.lua	Tue Dec 21 04:15:54 2010 +0000
+++ b/util/pubsub.lua	Tue Dec 21 04:17:24 2010 +0000
@@ -235,7 +235,7 @@
 
 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
 	--

mercurial