mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 04:11:59 +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_PREFIX'] = '_piler:';
|
||||||
$config['MEMCACHED_TTL'] = 900;
|
$config['MEMCACHED_TTL'] = 900;
|
||||||
|
|
||||||
|
$SUPPRESS_RECIPIENTS = array();
|
||||||
|
|
||||||
|
|
||||||
$memcached_servers = array(
|
$memcached_servers = array(
|
||||||
array('127.0.0.1', 11211)
|
array('127.0.0.1', 11211)
|
||||||
);
|
);
|
||||||
|
@ -484,6 +484,7 @@ class ModelSearchSearch extends Model {
|
|||||||
$tag = array();
|
$tag = array();
|
||||||
$note = array();
|
$note = array();
|
||||||
$q = '';
|
$q = '';
|
||||||
|
global $SUPPRESS_RECIPIENTS;
|
||||||
|
|
||||||
if(count($ids) == 0) return $messages;
|
if(count($ids) == 0) return $messages;
|
||||||
|
|
||||||
@ -498,7 +499,7 @@ class ModelSearchSearch extends Model {
|
|||||||
|
|
||||||
if(isset($query->rows)) {
|
if(isset($query->rows)) {
|
||||||
foreach($query->rows as $r) {
|
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'];
|
$srcpt[$r['id']] = $r['to'];
|
||||||
$rcpt[$r['id']] = $r['to'];
|
$rcpt[$r['id']] = $r['to'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user