Comparison

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
comparison
equal deleted inserted replaced
13601:0338a5569178 13602:5033029130f5
206 end 206 end
207 if action == "create" and module:may(":create-node", bare_jid) then 207 if action == "create" and module:may(":create-node", bare_jid) then
208 -- Only one affiliation is allowed to create nodes by default 208 -- Only one affiliation is allowed to create nodes by default
209 return "owner"; 209 return "owner";
210 end 210 end
211 if module:may(":service-admin", bare_jid) then 211 if module:could(":service-admin", bare_jid) then
212 return admin_aff; 212 return admin_aff;
213 end 213 end
214 end 214 end
215 215
216 function get_service() 216 function get_service()