mod_restrict_xmpp: Fix remaining hard-coded role name
authorMatthew Wild <mwild1@gmail.com>
Thu, 30 Nov 2023 18:05:42 +0000
changeset 5751 111e970213a0
parent 5750 561503e0c0f1
child 5752 dfbced5e54b9
mod_restrict_xmpp: Fix remaining hard-coded role name
mod_restrict_xmpp/mod_restrict_xmpp.lua
--- a/mod_restrict_xmpp/mod_restrict_xmpp.lua	Thu Nov 30 17:59:47 2023 +0000
+++ b/mod_restrict_xmpp/mod_restrict_xmpp.lua	Thu Nov 30 18:05:42 2023 +0000
@@ -113,7 +113,7 @@
 	end
 end
 
-module:default_permission("prosody:restricted", "xmpp:account:presence:write");
+module:default_permission(limited_user_role, "xmpp:account:presence:write");
 module:hook("pre-presence/bare", function (event)
 	if not event.to_self then return; end
 	local stanza = event.stanza;