aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-06 18:33:33 +0200
committerKim Alvefur <zash@zash.se>2018-08-06 18:33:33 +0200
commit31443e5e2e8861c09802af7ec7bad2edb960c9f3 (patch)
tree82e79d3cfc14c92f7583d89328d7a640a8485c31 /plugins/mod_pubsub/mod_pubsub.lua
parent4b848862f505b78aa427ad7a8a7cf4f5be933dc2 (diff)
downloadprosody-31443e5e2e8861c09802af7ec7bad2edb960c9f3.tar.gz
prosody-31443e5e2e8861c09802af7ec7bad2edb960c9f3.zip
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
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua4
1 files changed, 4 insertions, 0 deletions
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;