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 | 5b87c4bb4bc17f813267b0bd1c71aa1557938891 (patch) | |
tree | 973325589129bd4eddce615173bf79b8ee29d821 /util | |
parent | a657fb3dc974185a60ed27e681b43568bc247ae1 (diff) | |
download | prosody-5b87c4bb4bc17f813267b0bd1c71aa1557938891.tar.gz prosody-5b87c4bb4bc17f813267b0bd1c71aa1557938891.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
Diffstat (limited to 'util')
-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 |