From a3c82c5d0259a5fb53696391f2472c4ba462b8fa Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 6 Dec 2021 22:38:27 +0100 Subject: core.usermanager: Implement noop role writes on global authz provider So that the methods are there and don't cause an error. --- core/usermanager.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') 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() }; -- cgit v1.2.3