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
--- 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;