util.encodings: Support for ICU for IDNA operations.
[prosody.git] / core / usermanager.lua
index 1aea0de9b86f6c1ad17519023b86cd9e8c20f9cb..c49bf4288be29ab7ce942b1cafa415249e1e508a 100644 (file)
@@ -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 and hosts[host].users.is_admin then
+       if not is_admin and host ~= "*" and hosts[host].users.is_admin then
                is_admin = hosts[host].users.is_admin(jid);
        end
        return is_admin or false;