Changeset

9103:d5a7d2697b19

mod_pep: Restrict access models to 'presence', 'whitelist' and 'open' 'roster' needs additional support to inspect roster groups 'authorize' is not implemented
author Kim Alvefur <zash@zash.se>
date Sat, 04 Aug 2018 03:40:30 +0200
parents 9102:f3a1ecc46f20
children 9104:e1ca373a7e09
files plugins/mod_pep.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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