Software /
code /
prosody
Changeset
9139:24a1e7a9d463
mod_pubsub, mod_pep: The "restricted" affiliation should be allowed to be unsubscribed but nothing else
Can't revoke their subscriptions on change of access model otherwise
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 06 Aug 2018 18:33:33 +0200 |
parents | 9138:db47db788295 |
children | 9140:415a6d26709e |
files | plugins/mod_pep.lua plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pep.lua Mon Aug 06 17:04:11 2018 +0200 +++ b/plugins/mod_pep.lua Mon Aug 06 18:33:33 2018 +0200 @@ -144,6 +144,10 @@ end service = pubsub.new({ capabilities = { + restricted = { + be_subscribed = false; + be_unsubscribed = true; + }; none = { create = false; publish = false;
--- a/plugins/mod_pubsub/mod_pubsub.lua Mon Aug 06 17:04:11 2018 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Mon Aug 06 18:33:33 2018 +0200 @@ -173,6 +173,10 @@ set_service(pubsub.new({ capabilities = { + restricted = { + be_subscribed = false; + be_unsubscribed = true; + }; none = { create = false; publish = false;