aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.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
commit4eed4f2c33c04569225c2e6bf5e01451ba0c6631 (patch)
tree82e79d3cfc14c92f7583d89328d7a640a8485c31 /plugins/mod_pep.lua
parentae8176a49c9d055e72027dcf44adbe90feb4999b (diff)
downloadprosody-4eed4f2c33c04569225c2e6bf5e01451ba0c6631.tar.gz
prosody-4eed4f2c33c04569225c2e6bf5e01451ba0c6631.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_pep.lua')
-rw-r--r--plugins/mod_pep.lua4
1 files changed, 4 insertions, 0 deletions
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;