diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-21 04:36:34 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-21 04:36:34 +0000 |
commit | 0297ce2257db6cc83c94faa54abd5ea7de215031 (patch) | |
tree | e3cb4af9ebdb4653849a4eb65b4c5375c295448d | |
parent | 7aa49716a289009be1ecf69c1d74ec8f70421bd3 (diff) | |
download | prosody-0297ce2257db6cc83c94faa54abd5ea7de215031.tar.gz prosody-0297ce2257db6cc83c94faa54abd5ea7de215031.zip |
mod_pubsub: Use bare JID in get_affiliation
-rw-r--r-- | plugins/mod_pubsub.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |