mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:30:12 +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'));
|
||||
|
||||
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']; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user