aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_internal.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_auth_internal.lua')
-rw-r--r--plugins/mod_auth_internal.lua11
1 files changed, 1 insertions, 10 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