core.usermanager: Implement noop role writes on global authz provider
authorKim Alvefur <zash@zash.se>
Mon, 06 Dec 2021 22:38:27 +0100
changeset 12024 a949f1aae171
parent 12023 a0b6896bb538
child 12025 376522fb3f52
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
--- a/core/usermanager.lua	Mon Dec 06 22:33:46 2021 +0100
+++ b/core/usermanager.lua	Mon Dec 06 22:38:27 2021 +0100
@@ -54,6 +54,8 @@
 		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() };