diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-08-30 17:51:36 -0400 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-08-30 17:51:36 -0400 |
commit | a9d4688ebcf1918446d26b32ff2b6613d7ec8200 (patch) | |
tree | 67caf0de491b0ee7e691a1f7e45aa1d0a37804a3 /util | |
parent | 97f91932f71193f14fdbe44604c03965525db140 (diff) | |
download | prosody-a9d4688ebcf1918446d26b32ff2b6613d7ec8200.tar.gz prosody-a9d4688ebcf1918446d26b32ff2b6613d7ec8200.zip |
util.pubsub: Remove access checking from remove_all_subscriptions (temporarily?)
Diffstat (limited to 'util')
-rw-r--r-- | util/pubsub.lua | 14 |
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]; |