aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-06 22:38:27 +0100
committerKim Alvefur <zash@zash.se>2021-12-06 22:38:27 +0100
commita3c82c5d0259a5fb53696391f2472c4ba462b8fa (patch)
tree6d3bc817108d983118b30976e327c79bae185efa /core/usermanager.lua
parent9f2249b3dbdb86deae5d9ffde1a7a587dc02c4a1 (diff)
downloadprosody-a3c82c5d0259a5fb53696391f2472c4ba462b8fa.tar.gz
prosody-a3c82c5d0259a5fb53696391f2472c4ba462b8fa.zip
core.usermanager: Implement noop role writes on global authz provider
So that the methods are there and don't cause an error.
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index e3b9b797..ca4e2baa 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -54,6 +54,8 @@ local global_authz_provider = {
if role ~= "prosody:admin" then return {}; end
return it.to_array(global_admins);
end;
+ set_user_roles = function (user, roles) end; -- luacheck: ignore 212
+ set_jid_roles = function (jid, roles) end; -- luacheck: ignore 212
};
local provider_mt = { __index = new_null_provider() };