Changeset

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
parents 3916:ffe5a0d36f57
children 3918:f30c5bad29b8
files util/pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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
 	--