# HG changeset patch # User Kim Alvefur # Date 1533346281 -7200 # Node ID 1ff694534e98446160d0670025e71cac7be2d01b # Parent e01c7d0cbbf4e897f516a246435cd55359c496b7 mod_pubsub: Restrict access model to 'whitelist' and 'open' 'presence' and 'roster' makes more sense for PEP 'auithorize' needs additional code for authorization flow diff -r e01c7d0cbbf4 -r 1ff694534e98 plugins/mod_pubsub/mod_pubsub.lua --- 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