mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:40:11 +01:00
rcpt fix for non auditor users
This commit is contained in:
parent
0e5121ee57
commit
07b9f8b957
@ -102,7 +102,9 @@ class ModelSearchSearch extends Model {
|
|||||||
|
|
||||||
$sd = $this->fix_email_address_for_sphinx($session->get('domain'));
|
$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);
|
$sd = preg_replace("/^\|/", "", $sd);
|
||||||
|
|
||||||
@ -506,7 +508,7 @@ class ModelSearchSearch extends Model {
|
|||||||
$rcpt[$r['id']] = $r['to'];
|
$rcpt[$r['id']] = $r['to'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$rcpt[$r['id']] .= ",\n" . $r['to'];
|
if(Registry::get('auditor_user') == 1) { $rcpt[$r['id']] .= ",\n" . $r['to']; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user