aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/pubsub.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-12-03 23:19:27 +0100
committerKim Alvefur <zash@zash.se>2023-12-03 23:19:27 +0100
commit83ee7e57394d381fe5a2156b3b3dadfa07c4cc57 (patch)
treeb008f80ca322ca693b100a436130c21eec2e678f /plugins/mod_pubsub/pubsub.lib.lua
parent5ef6234248cf5c130e12b4eccd8b1cba24b2d2da (diff)
downloadprosody-83ee7e57394d381fe5a2156b3b3dadfa07c4cc57.tar.gz
prosody-83ee7e57394d381fe5a2156b3b3dadfa07c4cc57.zip
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.
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua6
1 files changed, 6 insertions, 0 deletions
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
@@ -110,6 +110,12 @@ local node_config_form = dataform {
};
};
{
+ 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";
var = "pubsub#publish_model";