From 31443e5e2e8861c09802af7ec7bad2edb960c9f3 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_pep.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/mod_pep.lua') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 1d81c82f..4036870f 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -144,6 +144,10 @@ function get_pep_service(username) end service = pubsub.new({ capabilities = { + restricted = { + be_subscribed = false; + be_unsubscribed = true; + }; none = { create = false; publish = false; -- cgit v1.2.3