Merge branch 'master' of ssh://git.kolab.org/git/roundcubemail-plugins-kolab
This commit is contained in:
commit
ee269df7ae
2 changed files with 8 additions and 3 deletions
|
@ -320,7 +320,7 @@ class kolab_delegation extends rcube_plugin
|
|||
*/
|
||||
public function controller_action()
|
||||
{
|
||||
$this->add_texts('localization/', true);
|
||||
$this->add_texts('localization/');
|
||||
|
||||
$engine = $this->engine();
|
||||
|
||||
|
@ -376,10 +376,10 @@ class kolab_delegation extends rcube_plugin
|
|||
// Delegate autocompletion
|
||||
else if ($this->rc->action == 'plugin.delegation-autocomplete') {
|
||||
$search = get_input_value('_search', RCUBE_INPUT_GPC, true);
|
||||
$sid = get_input_value('_id', RCUBE_INPUT_GPC);
|
||||
$reqid = get_input_value('_reqid', RCUBE_INPUT_GPC);
|
||||
$users = $engine->list_users($search);
|
||||
|
||||
$this->rc->output->command('ksearch_query_results', $users, $search, $sid);
|
||||
$this->rc->output->command('ksearch_query_results', $users, $search, $reqid);
|
||||
}
|
||||
|
||||
$this->rc->output->send();
|
||||
|
|
|
@ -427,6 +427,11 @@ class kolab_delegation_engine
|
|||
$result = $ldap->search($fields, $search, $mode, (array)$this->ldap_login_field, $max);
|
||||
|
||||
foreach ($result as $record) {
|
||||
// skip self
|
||||
if ($record['dn'] == $_SESSION['kolab_dn']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$user = $this->parse_ldap_record($record);
|
||||
|
||||
if ($user['name']) {
|
||||
|
|
Loading…
Add table
Reference in a new issue