# HG changeset patch # User Matthew Wild # Date 1314741096 14400 # Node ID 98b258b7d5dcf6bb18ed00239c9a0a0f157a18e6 # Parent b6c18cadd3ec548ca13472f513065717446c0e55 util.pubsub: Remove access checking from remove_all_subscriptions (temporarily?) diff -r b6c18cadd3ec -r 98b258b7d5dc util/pubsub.lua --- a/util/pubsub.lua Tue Aug 30 15:48:16 2011 -0400 +++ b/util/pubsub.lua Tue Aug 30 17:51:36 2011 -0400 @@ -172,20 +172,6 @@ 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];