aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-08-11 16:56:59 +0100
committerMatthew Wild <mwild1@gmail.com>2022-08-11 16:56:59 +0100
commitafbc47f8bafd599ab7cf7dc5dcac4931757b417a (patch)
tree9c41bc56656375fc1e9555607ccab3961f2a6a84
parent341a5fd99fdee635257dd03d1f098a5a09338455 (diff)
downloadprosody-afbc47f8bafd599ab7cf7dc5dcac4931757b417a.tar.gz
prosody-afbc47f8bafd599ab7cf7dc5dcac4931757b417a.zip
usermanager: Remove obsolete function from global authz provider
-rw-r--r--core/usermanager.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 09beb6d4..9adf1f25 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -43,11 +43,6 @@ local global_admins = set.new(global_admins_config) / jid_prep;
local admin_role = { ["prosody:admin"] = true };
local global_authz_provider = {
get_user_roles = function (user) end; --luacheck: ignore 212/user
- get_jid_roles = function (jid)
- if global_admins:contains(jid) then
- return admin_role;
- end
- end;
get_jids_with_role = function (role)
if role ~= "prosody:admin" then return {}; end
return it.to_array(global_admins);