util.pubsub: Fix nil global access in get_nodes()
authorMatthew Wild <mwild1@gmail.com>
Tue, 21 Dec 2010 04:17:24 +0000 (04:17 +0000)
committerMatthew Wild <mwild1@gmail.com>
Tue, 21 Dec 2010 04:17:24 +0000 (04:17 +0000)
util/pubsub.lua

index b12e52460e08ef03ab51e282903a4f70ec23e98d..1363bcb5f3bd2257ff03bb51a80414230ffd8e7b 100644 (file)
@@ -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
        --