# HG changeset patch # User Matthew Wild # Date 1584627160 0 # Node ID 52886aad9ee1f906c86030e644a7d9a6bccf91a3 # Parent 0cda5d5976079850d75045ed6aabc87ced8489d6 usermanager: Fix traceback when checking admin status of host-only JIDs (fixes #1508) diff -r 0cda5d597607 -r 52886aad9ee1 core/usermanager.lua --- a/core/usermanager.lua Thu Mar 19 00:10:15 2020 +0100 +++ b/core/usermanager.lua Thu Mar 19 14:12:40 2020 +0000 @@ -149,7 +149,7 @@ local authz_provider = (host ~= "*" and hosts[host].authz) or global_authz_provider; - if actor_host == host then -- Local user + if actor_user and actor_host == host then -- Local user roles = authz_provider.get_user_roles(actor_user); else -- Remote user/JID roles = authz_provider.get_jid_roles(jid);