# HG changeset patch # User Waqas Hussain # Date 1292608474 -18000 # Node ID 01cc9cbcbd52a67187cb1138957ef915d9354aed # Parent 3ba97d1d7a6217f2fd80dd41479b33a7c8709641 usermanager: Fixed a possible traceback when is_admin() was used on a component. diff -r 3ba97d1d7a62 -r 01cc9cbcbd52 core/usermanager.lua --- 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;