changeset 3768 | 01cc9cbcbd52 |
parent 3721 | bd5c6c333ee7 |
child 3982 | a20a41e512f8 |
--- a/core/usermanager.lua Fri Dec 17 17:11:04 2010 +0000 +++ b/core/usermanager.lua Fri Dec 17 22:54:34 2010 +0500 @@ -120,7 +120,7 @@ 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;