Fixed restricted auditor session domains handling

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2023-02-22 19:05:22 +01:00
parent d75ce865c4
commit 8944a8cb15

View File

@ -63,12 +63,12 @@ class ModelSearchSearch extends Model {
if(Registry::get('auditor_user') == 1) {
if(RESTRICTED_AUDITOR == 1) {
$session_domains = $this->fix_email_address_for_sphinx($session->get('auditdomains'));
$session_domains = $session->get('auditdomains');
$sd = $this->fix_email_address_for_sphinx($session->get('domain'));
foreach ($session_domains as $d) {
if($d) { $sd .= '|' . $d; }
if($d) { $sd .= '|' . $this->fix_email_address_for_sphinx($d); }
}
$sd = preg_replace("/^\|/", "", $sd);