mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
util.pubsub: Expand comment on return type from get_items
This commit is contained in:
parent
8957ef2f7d
commit
fb2fdc660b
1 changed files with 1 additions and 1 deletions
|
@ -583,7 +583,7 @@ function service:purge(node, actor, notify) --> ok, err
|
||||||
return true
|
return true
|
||||||
end
|
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
|
-- Access checking
|
||||||
if not self:may(node, actor, "get_items") then
|
if not self:may(node, actor, "get_items") then
|
||||||
return false, "forbidden";
|
return false, "forbidden";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue