# HG changeset patch # User Kim Alvefur # Date 1533573213 -7200 # Node ID 24a1e7a9d463e9540752e3388cfd2934a658f1eb # Parent db47db7882959bae94fc1ce3f4c71c2ff46b9f4b 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 diff -r db47db788295 -r 24a1e7a9d463 plugins/mod_pep.lua --- 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; diff -r db47db788295 -r 24a1e7a9d463 plugins/mod_pubsub/mod_pubsub.lua --- 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;