diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-08-09 20:27:04 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-08-09 20:27:04 +0100 |
commit | 1a41278b49862190aa475660119963201220a73b (patch) | |
tree | 973325589129bd4eddce615173bf79b8ee29d821 | |
parent | 7df3613768b9d0a85ccf0589caafc2e2a632c21e (diff) | |
download | prosody-1a41278b49862190aa475660119963201220a73b.tar.gz prosody-1a41278b49862190aa475660119963201220a73b.zip |
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
-rw-r--r-- | util/pubsub.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua index 48f9af3e..9afbf9d2 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -216,7 +216,7 @@ function service:get_default_affiliation(node, actor, action) -- luacheck: ignor or self.node_defaults.access_model; if access_model == "open" then - return "none"; + return "member"; elseif access_model == "whitelist" then return "outcast"; end |