Comparison

plugins/mod_pep.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 9133:2c1d68b54c91
child 9140:415a6d26709e
comparison
equal deleted inserted replaced
9138:db47db788295 9139:24a1e7a9d463
142 if service then 142 if service then
143 return service; 143 return service;
144 end 144 end
145 service = pubsub.new({ 145 service = pubsub.new({
146 capabilities = { 146 capabilities = {
147 restricted = {
148 be_subscribed = false;
149 be_unsubscribed = true;
150 };
147 none = { 151 none = {
148 create = false; 152 create = false;
149 publish = false; 153 publish = false;
150 retract = false; 154 retract = false;
151 get_nodes = false; 155 get_nodes = false;