Software /
code /
prosody
Changeset
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 |
parents | 12019:a0b6896bb538 |
children | 12021:376522fb3f52 |
files | core/usermanager.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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() };