Comparison

plugins/mod_authz_internal.lua @ 13541:3dc3781d02cd

mod_authz_internal: Hint at roles for external JIDs being read-only Roles for JIDs outside the current host are derived from configuration only with this module.
author Kim Alvefur <zash@zash.se>
date Fri, 01 Nov 2024 13:08:35 +0100
parent 13232:e0ab20519ce5
child 13587:fdb2e0568cf8
comparison
equal deleted inserted replaced
13540:cc67109ce502 13541:3dc3781d02cd
263 end 263 end
264 return nil; 264 return nil;
265 end 265 end
266 266
267 function set_jid_role(jid, role_name) -- luacheck: ignore 212 267 function set_jid_role(jid, role_name) -- luacheck: ignore 212
268 return false; 268 return false, "not-implemented";
269 end 269 end
270 270
271 function get_jids_with_role(role_name) 271 function get_jids_with_role(role_name)
272 -- Fetch role users from storage 272 -- Fetch role users from storage
273 local storage_role_jids = array.map(get_users_with_role(role_name), function (username) 273 local storage_role_jids = array.map(get_users_with_role(role_name), function (username)