mod_muc: Allow guest users to list rooms by default
authorMatthew Wild <mwild1@gmail.com>
Tue, 07 Nov 2023 11:12:57 +0000
changeset 13311 8fb8a253f0a1
parent 13310 939df56a51ba
child 13312 d539cb48c6e9
mod_muc: Allow guest users to list rooms by default
plugins/muc/mod_muc.lua
--- a/plugins/muc/mod_muc.lua	Tue Nov 07 11:10:38 2023 +0000
+++ b/plugins/muc/mod_muc.lua	Tue Nov 07 11:12:57 2023 +0000
@@ -115,6 +115,9 @@
 	":create-room";
 	":recreate-destroyed-room";
 });
+module:default_permissions("prosody:guest", {
+	":list-rooms";
+});
 
 if module:get_option_boolean("component_admins_as_room_owners", true) then
 	-- Monkey patch to make server admins room owners