aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-22 19:14:55 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-22 19:14:55 +0100
commit067898649ac2a10bb1845dff1ad1e4d8b860da1a (patch)
tree09535a08e423a4bb31ca0aff9d25eff8b3d3e990
parent1ae3061151891c94850346d938657d0316d17c4e (diff)
downloadprosody-067898649ac2a10bb1845dff1ad1e4d8b860da1a.tar.gz
prosody-067898649ac2a10bb1845dff1ad1e4d8b860da1a.zip
mod_auth_internal, mod_auth_internal_hashed: Remove is_admin method from providers
-rw-r--r--plugins/mod_auth_internal.lua11
-rw-r--r--plugins/mod_auth_internal_hashed.lua11
2 files changed, 2 insertions, 20 deletions
diff --git a/plugins/mod_auth_internal.lua b/plugins/mod_auth_internal.lua
index 2ac65b1d..b18403da 100644
--- a/plugins/mod_auth_internal.lua
+++ b/plugins/mod_auth_internal.lua
@@ -93,16 +93,7 @@ function new_default_provider(host)
};
return new_sasl(realm, getpass_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
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