mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 04:52:26 +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:
		| @@ -69,6 +69,10 @@ class ModelSearchMessage extends Model { | |||||||
|          $s = preg_replace("/" . HEADER_LINE_TO_HIDE . ".{1,}(\n(\ |\t){1,}.{1,}){0,}" . "\n/i", "", $s); |          $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; |       return $s; | ||||||
|    } |    } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user