util.pubsub: For open nodes, default affiliation is "member"
authorMatthew Wild <mwild1@gmail.com>
Thu, 09 Aug 2018 20:27:04 +0100
changeset 9164 da154ced7de4
parent 9163 e13a1a0b0107
child 9165 8ad1fe9d26d4
util.pubsub: For open nodes, default affiliation is "member" This allows entities without an explicit affiliation to retrieve items, which is specified by the XEP. Table 6: "Node Access Models" states that for 'open' nodes, "any entity may retrieve items from the node". See also discussion at: https://mail.jabber.org/pipermail/standards/2018-August/035320.html
util/pubsub.lua
--- a/util/pubsub.lua	Wed Aug 08 23:20:07 2018 +0100
+++ b/util/pubsub.lua	Thu Aug 09 20:27:04 2018 +0100
@@ -216,7 +216,7 @@
 		or self.node_defaults.access_model;
 
 	if access_model == "open" then
-		return "none";
+		return "member";
 	elseif access_model == "whitelist" then
 		return "outcast";
 	end