Diff

mod_restrict_xmpp/mod_restrict_xmpp.lua @ 5770:111e970213a0

mod_restrict_xmpp: Fix remaining hard-coded role name
author Matthew Wild <mwild1@gmail.com>
date Thu, 30 Nov 2023 18:05:42 +0000
parent 5582:825c6fb76c48
child 5777:1d0a0d3f9593
line wrap: on
line diff
--- 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;