From 0fe28ddb09d912103fe38a957b5c0102d67263ac Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 7 Jan 2025 23:37:41 +0100 Subject: mod_pubsub: Quiet down check for service admin This produced a *lot* of noise, especially listing items. --- plugins/mod_pubsub/mod_pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 413047e0..9cb63178 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -208,7 +208,7 @@ local function get_affiliation(jid, _, action) -- Only one affiliation is allowed to create nodes by default return "owner"; end - if module:may(":service-admin", bare_jid) then + if module:could(":service-admin", bare_jid) then return admin_aff; end end -- cgit v1.2.3