# HG changeset patch # User Kim Alvefur # Date 1638826707 -3600 # Node ID a949f1aae171e3d67e7b5de5c469264edf33b10f # Parent a0b6896bb538b4c7b01d39a0846ee644581775bd core.usermanager: Implement noop role writes on global authz provider So that the methods are there and don't cause an error. diff -r a0b6896bb538 -r a949f1aae171 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() };