Software /
code /
prosody
Diff
core/usermanager.lua @ 12020:a949f1aae171
core.usermanager: Implement noop role writes on global authz provider
So that the methods are there and don't cause an error.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 06 Dec 2021 22:38:27 +0100 |
parent | 11898:89aa591bb895 |
child | 12333:ed8a4f8dfd27 |
line wrap: on
line diff
--- 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() };