Software /
code /
prosody
Changeset
9101:1ff694534e98
mod_pubsub: Restrict access model to 'whitelist' and 'open'
'presence' and 'roster' makes more sense for PEP
'auithorize' needs additional code for authorization flow
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 Aug 2018 03:31:21 +0200 |
parents | 9100:e01c7d0cbbf4 |
children | 9102:f3a1ecc46f20 |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Sat Aug 04 03:13:55 2018 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Sat Aug 04 03:31:21 2018 +0200 @@ -75,6 +75,9 @@ if (new_config["max_items"] or 1) > max_max_items then return false; end + if new_config["access_model"] ~= "whitelist" and new_config["access_model"] ~= "open" then + return false; + end return true; end