Changeset

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
parents 13601:0338a5569178
children 13603:6e5124f72e9a
files plugins/mod_pubsub/mod_pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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