mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 21:41:59 +01:00
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:
parent
a815d1b60f
commit
91074ed617
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user