From fb2fdc660bc596f09c860d3876bf4d4c23344fb6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 1 Sep 2018 00:45:51 +0200 Subject: util.pubsub: Expand comment on return type from get_items --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/pubsub.lua') diff --git a/util/pubsub.lua b/util/pubsub.lua index 7b29bb3d..cb21174f 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -583,7 +583,7 @@ function service:purge(node, actor, notify) --> ok, err return true end -function service:get_items(node, actor, id) --> ok, err +function service:get_items(node, actor, id) --> (true, { id, [id] = node }) or (false, err) -- Access checking if not self:may(node, actor, "get_items") then return false, "forbidden"; -- cgit v1.2.3