Comparison

util/pubsub.lua @ 9161:da154ced7de4

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
author Matthew Wild <mwild1@gmail.com>
date Thu, 09 Aug 2018 20:27:04 +0100
parent 9160:e13a1a0b0107
child 9172:822e9c5ff4a4
comparison
equal deleted inserted replaced
9160:e13a1a0b0107 9161:da154ced7de4
214 local node_obj = self.nodes[node]; 214 local node_obj = self.nodes[node];
215 local access_model = node_obj and node_obj.config.access_model 215 local access_model = node_obj and node_obj.config.access_model
216 or self.node_defaults.access_model; 216 or self.node_defaults.access_model;
217 217
218 if access_model == "open" then 218 if access_model == "open" then
219 return "none"; 219 return "member";
220 elseif access_model == "whitelist" then 220 elseif access_model == "whitelist" then
221 return "outcast"; 221 return "outcast";
222 end 222 end
223 223
224 if self.config.access_models then 224 if self.config.access_models then