mod_pep: Add comment explaining 'none' affiliation
authorMatthew Wild <mwild1@gmail.com>
Wed, 08 Aug 2018 20:40:44 +0100
changeset 9160 c517a219f2ac
parent 9159 f06484110817
child 9161 37e814a680ab
mod_pep: Add comment explaining 'none' affiliation
plugins/mod_pep.lua
--- a/plugins/mod_pep.lua	Wed Aug 08 20:38:10 2018 +0100
+++ b/plugins/mod_pep.lua	Wed Aug 08 20:40:44 2018 +0100
@@ -249,6 +249,9 @@
 		access_models = {
 			presence = function (jid)
 				if subscription_presence(username, jid) then
+					-- This is their affiliation level which determines
+					-- permissions, it is acceptable to be a subscriber
+					-- with no affiliation.
 					return "none";
 				end
 				return "restricted";