From 0297ce2257db6cc83c94faa54abd5ea7de215031 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 21 Dec 2010 04:36:34 +0000 Subject: mod_pubsub: Use bare JID in get_affiliation --- plugins/mod_pubsub.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index e2b0f2fd..841de147 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -236,7 +236,8 @@ end); local admin_aff = module:get_option_string("default_admin_affiliation", "owner"); local function get_affiliation(jid) - if jid == module.host or usermanager.is_admin(jid, module.host) then + local bare_jid = jid_bare(jid); + if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then return admin_aff; end end -- cgit v1.2.3