From 83ee7e57394d381fe5a2156b3b3dadfa07c4cc57 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 3 Dec 2023 23:19:27 +0100 Subject: 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. --- plugins/mod_pubsub/pubsub.lib.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/mod_pubsub') diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 28b7be50..8ae0a896 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -109,6 +109,12 @@ local node_config_form = dataform { "whitelist", }; }; + { + type = "list-multi"; -- TODO some way to inject options + name = "roster_groups_allowed"; + var = "pubsub#roster_groups_allowed"; + label = "Roster groups allowed to subscribe"; + }; { type = "list-single"; name = "publish_model"; -- cgit v1.2.3