Mercurial > prosody-hg
comparison plugins/mod_pubsub/pubsub.lib.lua @ 6445:f1ad3923368c
pubsub.lib: Fix actor in configure
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 28 Sep 2014 02:41:13 +0200 |
| parents | bcb1ea9047d3 |
| children | 011ca9b88179 |
comparison
equal
deleted
inserted
replaced
| 6441:bcb1ea9047d3 | 6445:f1ad3923368c |
|---|---|
| 228 local node = config.attr.node; | 228 local node = config.attr.node; |
| 229 if not node then | 229 if not node then |
| 230 return origin.send(pubsub_error_reply(stanza, "nodeid-required")); | 230 return origin.send(pubsub_error_reply(stanza, "nodeid-required")); |
| 231 end | 231 end |
| 232 | 232 |
| 233 if not service:may(node, actor, "configure") then | 233 if not service:may(node, stanza.attr.from, "configure") then |
| 234 return origin.send(pubsub_error_reply(stanza, "forbidden")); | 234 return origin.send(pubsub_error_reply(stanza, "forbidden")); |
| 235 end | 235 end |
| 236 | 236 |
| 237 local node_obj = service.nodes[node]; | 237 local node_obj = service.nodes[node]; |
| 238 if not node_obj then | 238 if not node_obj then |
