From f884543a6dced0518605b7e55f7c28a4604e1366 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 4 Aug 2018 03:40:30 +0200 Subject: mod_pep: Restrict access models to 'presence', 'whitelist' and 'open' 'roster' needs additional support to inspect roster groups 'authorize' is not implemented --- plugins/mod_pep.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/mod_pep.lua') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index eb00aef9..66f0df5b 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -44,6 +44,11 @@ function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node 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 -- cgit v1.2.3