Changeset

9154:fd50e9c8c417

mod_pep: Change default affiliation in the "presence" access model to "restricted" for non-contacts This lets us loosen the restrictions of the "none" affiliation, so that the "open" access model allows anyone basic access.
author Kim Alvefur <zash@zash.se>
date Wed, 08 Aug 2018 20:55:14 +0200
parents 9153:26c5a4a14905
children 9155:ccd91fa828c4
files plugins/mod_pep.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Wed Aug 08 09:29:32 2018 +0200
+++ b/plugins/mod_pep.lua	Wed Aug 08 20:55:14 2018 +0200
@@ -273,6 +273,7 @@
 				if subscription_presence(username, jid) then
 					return "subscriber";
 				end
+				return "restricted";
 			end;
 		};