Diff

util/pubsub.lua @ 3917:263a133bdf5a

util.pubsub: Fix nil global access in get_nodes()
author Matthew Wild <mwild1@gmail.com>
date Tue, 21 Dec 2010 04:17:24 +0000
parent 3910:80fe910f912a
child 3928:4dfb345e33ec
line wrap: on
line diff
--- 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
 	--