Software / code / prosody
Comparison
util/pubsub.lua @ 9539:b30455212f89
util.pubsub: Clarify comment about return value
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 21 Oct 2018 22:21:18 +0200 |
| parent | 9516:038446c50630 |
| child | 9742:18eca6afb367 |
comparison
equal
deleted
inserted
replaced
| 9538:07665733b332 | 9539:b30455212f89 |
|---|---|
| 760 end | 760 end |
| 761 | 761 |
| 762 return true; | 762 return true; |
| 763 end | 763 end |
| 764 | 764 |
| 765 function service:get_node_config(node, actor) --> ok, err | 765 function service:get_node_config(node, actor) --> (true, config) or (false, err) |
| 766 if not self:may(node, actor, "get_configuration") then | 766 if not self:may(node, actor, "get_configuration") then |
| 767 return false, "forbidden"; | 767 return false, "forbidden"; |
| 768 end | 768 end |
| 769 | 769 |
| 770 local node_obj = self.nodes[node]; | 770 local node_obj = self.nodes[node]; |