gui: remove X-Piler-Envelope-To: header lines for non auditor users

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-02-21 14:56:38 +01:00
parent a815d1b60f
commit 91074ed617

View File

@ -69,6 +69,10 @@ class ModelSearchMessage extends Model {
$s = preg_replace("/" . HEADER_LINE_TO_HIDE . ".{1,}(\n(\ |\t){1,}.{1,}){0,}" . "\n/i", "", $s);
}
if(Registry::get('auditor_user') == 0){
$s = preg_replace("/X-Piler-Envelope-To:.{1,}\n/", "", $s);
}
return $s;
}