mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
Fixed restricted auditor session domains handling
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
d75ce865c4
commit
8944a8cb15
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user