Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 9139:24a1e7a9d463

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
author Kim Alvefur <zash@zash.se>
date Mon, 06 Aug 2018 18:33:33 +0200
parent 9119:5444d4a8ad90
child 9158:37e814a680ab
comparison
equal deleted inserted replaced
9138:db47db788295 9139:24a1e7a9d463
171 function module.load() 171 function module.load()
172 if module.reloading then return; end 172 if module.reloading then return; end
173 173
174 set_service(pubsub.new({ 174 set_service(pubsub.new({
175 capabilities = { 175 capabilities = {
176 restricted = {
177 be_subscribed = false;
178 be_unsubscribed = true;
179 };
176 none = { 180 none = {
177 create = false; 181 create = false;
178 publish = false; 182 publish = false;
179 retract = false; 183 retract = false;
180 get_nodes = true; 184 get_nodes = true;