aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-08-30 17:51:36 -0400
committerMatthew Wild <mwild1@gmail.com>2011-08-30 17:51:36 -0400
commita9d4688ebcf1918446d26b32ff2b6613d7ec8200 (patch)
tree67caf0de491b0ee7e691a1f7e45aa1d0a37804a3 /util/pubsub.lua
parent97f91932f71193f14fdbe44604c03965525db140 (diff)
downloadprosody-a9d4688ebcf1918446d26b32ff2b6613d7ec8200.tar.gz
prosody-a9d4688ebcf1918446d26b32ff2b6613d7ec8200.zip
util.pubsub: Remove access checking from remove_all_subscriptions (temporarily?)
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index df055c7a..d8ae1f38 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -172,20 +172,6 @@ function service:remove_subscription(node, actor, jid)
end
function service:remove_all_subscriptions(actor, jid)
- -- Access checking
- local cap;
- if actor == true or jid == actor or self:jids_equal(actor, jid) then
- cap = "unsubscribe";
- else
- cap = "unsubscribe_other";
- end
- if not self:may(node, actor, cap) then
- return false, "forbidden";
- end
- if not self:may(node, jid, "be_unsubscribed") then
- return false, "forbidden";
- end
- --
local normal_jid = self.config.normalize_jid(jid);
local subs = self.subscriptions[normal_jid]
subs = subs and subs[jid];