aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-03-19 14:12:40 +0000
committerMatthew Wild <mwild1@gmail.com>2020-03-19 14:12:40 +0000
commitaa899ea68f6ec56df5ccd1500592aa2b9e87852d (patch)
treee01decc40862d96012abe5984f6e03bd69e4673e /core
parent9fcef682cb2abf517a2a396e1b9a33b519b9a71b (diff)
downloadprosody-aa899ea68f6ec56df5ccd1500592aa2b9e87852d.tar.gz
prosody-aa899ea68f6ec56df5ccd1500592aa2b9e87852d.zip
usermanager: Fix traceback when checking admin status of host-only JIDs (fixes #1508)
Diffstat (limited to 'core')
-rw-r--r--core/usermanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index aced0379..11707450 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -149,7 +149,7 @@ local function get_roles(jid, host)
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);