rcpt fix for non auditor users

This commit is contained in:
SJ 2015-04-16 13:54:57 +02:00
parent 0e5121ee57
commit 07b9f8b957

View File

@ -102,7 +102,9 @@ class ModelSearchSearch extends Model {
$sd = $this->fix_email_address_for_sphinx($session->get('domain'));
foreach ($session_domains as $d) { $sd .= '|' . $d; }
foreach ($session_domains as $d) {
if($d) { $sd .= '|' . $d; }
}
$sd = preg_replace("/^\|/", "", $sd);
@ -506,7 +508,7 @@ class ModelSearchSearch extends Model {
$rcpt[$r['id']] = $r['to'];
}
else {
$rcpt[$r['id']] .= ",\n" . $r['to'];
if(Registry::get('auditor_user') == 1) { $rcpt[$r['id']] .= ",\n" . $r['to']; }
}
}
}