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 | b18b85670fe5f6c1b6a6c2eafd8c8723f891e91c (patch) | |
tree | f12a7ba5a29a5a9b071652c3544fb5151a8b0018 /core/usermanager.lua | |
parent | e7513fcc4dbd99ce14ce83875c97f3047604b0d5 (diff) | |
download | prosody-b18b85670fe5f6c1b6a6c2eafd8c8723f891e91c.tar.gz prosody-b18b85670fe5f6c1b6a6c2eafd8c8723f891e91c.zip |
usermanager: Fixed a possible traceback when is_admin() was used on a component.
Diffstat (limited to 'core/usermanager.lua')
-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; |