Software /
code /
prosody
Diff
plugins/mod_pubsub/mod_pubsub.lua @ 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 |
parent | 9119:5444d4a8ad90 |
child | 9158:37e814a680ab |
line wrap: on
line diff
--- 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;