#1810 Removing affiliation from whitelist pubsub node does not remove subscription
Reporter
Stephen Paul Weber
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Status-New
Type-Defect
Priority-Medium
Stephen Paul Weber
on
In util/pubsub.lua under set_affiliation
```
elseif jid_sub and not self:may(node, jid, "be_subscribed") then
local ok, err = self:add_subscription(node, true, jid);
if not ok then
return ok, err;
end
end
```
I expect this means to be self:remove_subscription
In testing when I use set_affiliation with nil it removes the affiliation but even on a whitelist node the subscription is not removed.
In util/pubsub.lua under set_affiliation ``` elseif jid_sub and not self:may(node, jid, "be_subscribed") then local ok, err = self:add_subscription(node, true, jid); if not ok then return ok, err; end end ``` I expect this means to be self:remove_subscription In testing when I use set_affiliation with nil it removes the affiliation but even on a whitelist node the subscription is not removed.