From 067898649ac2a10bb1845dff1ad1e4d8b860da1a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 22 Jun 2010 19:14:55 +0100 Subject: mod_auth_internal, mod_auth_internal_hashed: Remove is_admin method from providers --- plugins/mod_auth_internal_hashed.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'plugins/mod_auth_internal_hashed.lua') diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua index e85ea8dc..b50be2f4 100644 --- a/plugins/mod_auth_internal_hashed.lua +++ b/plugins/mod_auth_internal_hashed.lua @@ -151,16 +151,7 @@ function new_hashpass_provider(host) }; return new_sasl(realm, testpass_authentication_profile); end - - function provider.is_admin(jid) - local admins = module:get_option_array("admins"); - if admins ~= config.get("*", "core", "admins") and type(admins) == "table" then - jid = jid_bare(jid); - for _,admin in ipairs(admins) do - if admin == jid then return true; end - end - end - end + return provider; end -- cgit v1.2.3