plugins/mod_pep.lua
changeset 9106 d5a7d2697b19
parent 9102 974b25c27f24
child 9116 74639d606a15
--- 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