# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1533346830 -7200 # Node ID d5a7d2697b19a72be769d66d10a4527a9ee41020 # Parent f3a1ecc46f208cc26d725a36f1668559d43d8e29 mod_pep: Restrict access models to 'presence', 'whitelist' and 'open' 'roster' needs additional support to inspect roster groups 'authorize' is not implemented diff -r f3a1ecc46f20 -r d5a7d2697b19 plugins/mod_pep.lua --- a/plugins/mod_pep.lua Sat Aug 04 03:33:21 2018 +0200 +++ b/plugins/mod_pep.lua Sat Aug 04 03:40:30 2018 +0200 @@ -44,6 +44,11 @@ if (new_config["max_items"] or 1) > max_max_items then return false; end + if new_config["access_model"] ~= "presence" + and new_config["access_model"] ~= "whitelist" + and new_config["access_model"] ~= "open" then + return false; + end return true; end