diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-17 22:54:34 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-17 22:54:34 +0500 |
commit | 3ad9aafc341bd8b9db5d4c4bb282a7fbfe14d19f (patch) | |
tree | e40aefc03894b0c6bf488df3200e0dd2ebc6b23a | |
parent | f8e688ecf76064fa2e9b053d97700f91fdc4462b (diff) | |
download | prosody-3ad9aafc341bd8b9db5d4c4bb282a7fbfe14d19f.tar.gz prosody-3ad9aafc341bd8b9db5d4c4bb282a7fbfe14d19f.zip |
usermanager: Fixed a possible traceback when is_admin() was used on a component.
-rw-r--r-- | core/usermanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua index c49bf428..1aea0de9 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -120,7 +120,7 @@ function is_admin(jid, host) end -- Still not an admin, check with auth provider - if not is_admin and host ~= "*" and hosts[host].users.is_admin then + if not is_admin and host ~= "*" and hosts[host].users and hosts[host].users.is_admin then is_admin = hosts[host].users.is_admin(jid); end return is_admin or false; |