Removed incorrect roster check when routing iq stanzas.

git-svn-id: http://voip.null.ro/svn/yate@2931 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2009-11-11 14:21:17 +00:00
parent 359d49bed3
commit fc6ed47490
1 changed files with 0 additions and 17 deletions

View File

@ -2650,23 +2650,6 @@ void JBPendingWorker::processIq(JBPendingJob& job)
}
bool respond = (t == XMPPUtils::IqGet || t == XMPPUtils::IqSet);
// Destination at local domain: deny the request if the sender is not
// the target's roster
if (s_jabber->hasDomain(ev->to().domain()) &&
!s_jabber->hasComponent(ev->to().domain()) &&
!job.m_serverItemTarget) {
// Check auth
Message auth("resource.subscribe");
auth.addParam("module",__plugin.name());
auth.addParam("operation","query");
auth.addParam("subscriber",ev->from().bare());
auth.addParam("notifier",ev->to().bare());
if (!Engine::dispatch(auth)) {
if (respond)
job.sendIqErrorStanza(XMPPError::ServiceUnavailable);
return;
}
}
// Route the iq
Message m("jabber.iq");
m.addParam("module",__plugin.name());