mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
Fixed model/search restricted auditor domain handling
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
3af085ab91
commit
573fd62860
@ -65,7 +65,13 @@ class ModelSearchSearch extends Model {
|
|||||||
if(RESTRICTED_AUDITOR == 1) {
|
if(RESTRICTED_AUDITOR == 1) {
|
||||||
$session_domains = $session->get('auditdomains');
|
$session_domains = $session->get('auditdomains');
|
||||||
|
|
||||||
$sd = $this->fix_email_address_for_sphinx($session->get('domain'));
|
$sd = "";
|
||||||
|
|
||||||
|
$domains = $session->get('domain');
|
||||||
|
foreach ($domains as $d) {
|
||||||
|
if($sd) { $sd .= '|'; }
|
||||||
|
$sd .= $this->fix_email_address_for_sphinx($d);
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($session_domains as $d) {
|
foreach ($session_domains as $d) {
|
||||||
if($d) { $sd .= '|' . $this->fix_email_address_for_sphinx($d); }
|
if($d) { $sd .= '|' . $this->fix_email_address_for_sphinx($d); }
|
||||||
|
Loading…
Reference in New Issue
Block a user