Software /
code /
prosody
Diff
plugins/mod_pubsub/mod_pubsub.lua @ 13602:5033029130f5
mod_pubsub: Quiet down check for service admin
This produced a *lot* of noise, especially listing items.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 07 Jan 2025 23:37:41 +0100 |
parent | 13601:0338a5569178 |
child | 13608:df32fff0963d |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Tue Jan 07 22:57:39 2025 +0100 +++ b/plugins/mod_pubsub/mod_pubsub.lua Tue Jan 07 23:37:41 2025 +0100 @@ -208,7 +208,7 @@ -- 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