mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:01:58 +01:00
added an option to suppress email address in the search results pane for regular users
This commit is contained in:
parent
876f21bec0
commit
1411b53933
@ -258,6 +258,9 @@ $config['FOUR_EYES_LOGIN_FOR_AUDITOR'] = 0;
|
||||
$config['MEMCACHED_PREFIX'] = '_piler:';
|
||||
$config['MEMCACHED_TTL'] = 900;
|
||||
|
||||
$SUPPRESS_RECIPIENTS = array();
|
||||
|
||||
|
||||
$memcached_servers = array(
|
||||
array('127.0.0.1', 11211)
|
||||
);
|
||||
|
@ -484,6 +484,7 @@ class ModelSearchSearch extends Model {
|
||||
$tag = array();
|
||||
$note = array();
|
||||
$q = '';
|
||||
global $SUPPRESS_RECIPIENTS;
|
||||
|
||||
if(count($ids) == 0) return $messages;
|
||||
|
||||
@ -498,7 +499,7 @@ class ModelSearchSearch extends Model {
|
||||
|
||||
if(isset($query->rows)) {
|
||||
foreach($query->rows as $r) {
|
||||
if(!isset($rcpt[$r['id']])) {
|
||||
if(!isset($rcpt[$r['id']]) && !in_array($r['to'], $SUPPRESS_RECIPIENTS)) {
|
||||
$srcpt[$r['id']] = $r['to'];
|
||||
$rcpt[$r['id']] = $r['to'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user