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()
|
public function controller_action()
|
||||||
{
|
{
|
||||||
$this->add_texts('localization/', true);
|
$this->add_texts('localization/');
|
||||||
|
|
||||||
$engine = $this->engine();
|
$engine = $this->engine();
|
||||||
|
|
||||||
|
@ -376,10 +376,10 @@ class kolab_delegation extends rcube_plugin
|
||||||
// Delegate autocompletion
|
// Delegate autocompletion
|
||||||
else if ($this->rc->action == 'plugin.delegation-autocomplete') {
|
else if ($this->rc->action == 'plugin.delegation-autocomplete') {
|
||||||
$search = get_input_value('_search', RCUBE_INPUT_GPC, true);
|
$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);
|
$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();
|
$this->rc->output->send();
|
||||||
|
|
|
@ -427,6 +427,11 @@ class kolab_delegation_engine
|
||||||
$result = $ldap->search($fields, $search, $mode, (array)$this->ldap_login_field, $max);
|
$result = $ldap->search($fields, $search, $mode, (array)$this->ldap_login_field, $max);
|
||||||
|
|
||||||
foreach ($result as $record) {
|
foreach ($result as $record) {
|
||||||
|
// skip self
|
||||||
|
if ($record['dn'] == $_SESSION['kolab_dn']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$user = $this->parse_ldap_record($record);
|
$user = $this->parse_ldap_record($record);
|
||||||
|
|
||||||
if ($user['name']) {
|
if ($user['name']) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue