comparison util/pubsub.lua @ 13486:fdd1438d9ef7

mod_pep: Implement 'roster' (group) access_model Allows e.g. restricting your vcard4 to only family or similar. Notes: This does not include roster groups in the configuration form, so the client will have to get them from the actual roster.
author Kim Alvefur <zash@zash.se>
date Sun, 03 Dec 2023 23:19:27 +0100
parents d10957394a3c
children 88cab98aa28c
comparison
equal deleted inserted replaced
13485:3bdbaba15c00 13486:fdd1438d9ef7
261 end 261 end
262 262
263 if self.config.access_models then 263 if self.config.access_models then
264 local check = self.config.access_models[access_model]; 264 local check = self.config.access_models[access_model];
265 if check then 265 if check then
266 local aff = check(actor); 266 local aff = check(actor, node_obj);
267 if aff then 267 if aff then
268 return aff; 268 return aff;
269 end 269 end
270 end 270 end
271 end 271 end