Diff

mod_vcard_muc/mod_vcard_muc.lua @ 5673:0eb2d5ea2428

merge
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Sat, 06 May 2023 19:40:23 -0500
parent 5290:dddac5a3f447
child 5927:6fb26b6691c0
line wrap: on
line diff
--- a/mod_vcard_muc/mod_vcard_muc.lua	Wed Feb 22 22:47:45 2023 -0500
+++ b/mod_vcard_muc/mod_vcard_muc.lua	Sat May 06 19:40:23 2023 -0500
@@ -76,7 +76,7 @@
 			session.send(st.error_reply(stanza, "cancel", "item-not-found"));
 		end
 	else
-		if from_affiliation == "owner" then
+		if from_affiliation == "owner" or (module.may and module:may("muc:automatic-ownership", from)) then
 			if vcards:set(room_node, st.preserialize(stanza.tags[1])) then
 				session.send(st.reply(stanza):tag("vCard", { xmlns = "vcard-temp" }));
 				broadcast_presence(room, nil)