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:
parent
359d49bed3
commit
fc6ed47490
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue