File

plugins/muc/config_form_sections.lib.lua @ 11712:d117b92fd8e4 0.11 0.11.10

MUC: Fix logic for access to affiliation lists Fixes https://prosody.im/security/advisory_20210722/ Backs out 4d7b925652d9
author Kim Alvefur <zash@zash.se>
date Thu, 22 Jul 2021 17:18:39 +0200
parent 9036:bb4dcc555091
line wrap: on
line source

module:hook("muc-config-form", function(event)
	table.insert(event.form, {
		type = "fixed";
		value = "Room information";
	});
end, 100);

module:hook("muc-config-form", function(event)
	table.insert(event.form, {
		type = "fixed";
		value = "Access to the room";
	});
end, 90);

module:hook("muc-config-form", function(event)
	table.insert(event.form, {
		type = "fixed";
		value = "Permissions in the room";
	});
end, 80);

module:hook("muc-config-form", function(event)
	table.insert(event.form, {
		type = "fixed";
		value = "Other options";
	});
end, 70);