Diff

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
parent 6441:bcb1ea9047d3
child 6446:011ca9b88179
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua	Sun Sep 28 01:55:32 2014 +0200
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Sun Sep 28 02:41:13 2014 +0200
@@ -230,7 +230,7 @@
 		return origin.send(pubsub_error_reply(stanza, "nodeid-required"));
 	end
 
-	if not service:may(node, actor, "configure") then
+	if not service:may(node, stanza.attr.from, "configure") then
 		return origin.send(pubsub_error_reply(stanza, "forbidden"));
 	end