aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_auth_internal_hashed.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_auth_internal_hashed.lua')
-rw-r--r--plugins/mod_auth_internal_hashed.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/mod_auth_internal_hashed.lua b/plugins/mod_auth_internal_hashed.lua
index 84487cde..3e5cb17a 100644
--- a/plugins/mod_auth_internal_hashed.lua
+++ b/plugins/mod_auth_internal_hashed.lua
@@ -159,16 +159,13 @@ function new_hashpass_provider(host)
end
function provider.is_admin(jid)
- local admins = config.get(host, "core", "admins");
+ 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
- elseif admins then
- log("error", "Option 'admins' for host '%s' is not a table", host);
end
- return is_admin(jid); -- Test whether it's a global admin instead
end
return provider;
end