diff options
author | Kim Alvefur <zash@zash.se> | 2023-12-03 23:19:27 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-12-03 23:19:27 +0100 |
commit | 83ee7e57394d381fe5a2156b3b3dadfa07c4cc57 (patch) | |
tree | b008f80ca322ca693b100a436130c21eec2e678f /util | |
parent | 5ef6234248cf5c130e12b4eccd8b1cba24b2d2da (diff) | |
download | prosody-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 'util')
-rw-r--r-- | util/pubsub.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua index e089b08c..ccde8b53 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -263,7 +263,7 @@ function service:get_default_affiliation(node, actor) --> affiliation if self.config.access_models then local check = self.config.access_models[access_model]; if check then - local aff = check(actor); + local aff = check(actor, node_obj); if aff then return aff; end |