From 4eed4f2c33c04569225c2e6bf5e01451ba0c6631 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 6 Aug 2018 18:33:33 +0200 Subject: 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 --- plugins/mod_pubsub/mod_pubsub.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/mod_pubsub/mod_pubsub.lua') diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 25b5192d..792eebbc 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -173,6 +173,10 @@ function module.load() set_service(pubsub.new({ capabilities = { + restricted = { + be_subscribed = false; + be_unsubscribed = true; + }; none = { create = false; publish = false; -- cgit v1.2.3