mod_pep: Change default affiliation in the "presence" access model to "restricted" for non-contacts
authorKim Alvefur <zash@zash.se>
Wed, 08 Aug 2018 20:55:14 +0200
changeset 9157 fd50e9c8c417
parent 9156 26c5a4a14905
child 9158 ccd91fa828c4
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.
plugins/mod_pep.lua
--- 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;
 		};