mod_pubsub, mod_pep: The "restricted" affiliation should be allowed to be unsubscribed but nothing else
authorKim Alvefur <zash@zash.se>
Mon, 06 Aug 2018 18:33:33 +0200
changeset 9142 24a1e7a9d463
parent 9141 db47db788295
child 9143 415a6d26709e
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
plugins/mod_pubsub/mod_pubsub.lua
--- 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;