aboutsummaryrefslogtreecommitdiffstats
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
commit355b05e341309929a838f739f348ee6ecbe34581 (patch)
tree67caf0de491b0ee7e691a1f7e45aa1d0a37804a3
parent20725d07f974ecc7c6b23be5ab5849305e0a4345 (diff)
downloadprosody-355b05e341309929a838f739f348ee6ecbe34581.tar.gz
prosody-355b05e341309929a838f739f348ee6ecbe34581.zip
util.pubsub: Remove access checking from remove_all_subscriptions (temporarily?)
-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];