aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2025-01-07 23:37:41 +0100
committerKim Alvefur <zash@zash.se>2025-01-07 23:37:41 +0100
commit0fe28ddb09d912103fe38a957b5c0102d67263ac (patch)
tree4dd353a95ce052d06e61fc32b7f9a54d7c6bfa71 /plugins/mod_pubsub/mod_pubsub.lua
parentc900aab69e8f61610e5dce1785e6df46de2a92c4 (diff)
downloadprosody-0fe28ddb09d912103fe38a957b5c0102d67263ac.tar.gz
prosody-0fe28ddb09d912103fe38a957b5c0102d67263ac.zip
mod_pubsub: Quiet down check for service admin
This produced a *lot* of noise, especially listing items.
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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