Comparison

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
comparison
equal deleted inserted replaced
12019:a0b6896bb538 12020:a949f1aae171
52 end; 52 end;
53 get_jids_with_role = function (role) 53 get_jids_with_role = function (role)
54 if role ~= "prosody:admin" then return {}; end 54 if role ~= "prosody:admin" then return {}; end
55 return it.to_array(global_admins); 55 return it.to_array(global_admins);
56 end; 56 end;
57 set_user_roles = function (user, roles) end; -- luacheck: ignore 212
58 set_jid_roles = function (jid, roles) end; -- luacheck: ignore 212
57 }; 59 };
58 60
59 local provider_mt = { __index = new_null_provider() }; 61 local provider_mt = { __index = new_null_provider() };
60 62
61 local function initialize_host(host) 63 local function initialize_host(host)