diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-10 08:50:32 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-10 08:50:32 +0000 |
| commit | 5752738463196e94d7ca57a7039edf44af439262 (patch) | |
| tree | 6042d734d20974b772e2ec9a268ad3eac4757f98 /plugins/acl/acl.php | |
| parent | 0426c50f8254bb4bfff6ef49ddc2a4a05264608b (diff) | |
- Support addressbook_search_mode
git-svn-id: https://svn.roundcube.net/trunk@5408 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/acl/acl.php')
| -rw-r--r-- | plugins/acl/acl.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php index fe7d0d5eb..1448fb088 100644 --- a/plugins/acl/acl.php +++ b/plugins/acl/acl.php @@ -3,7 +3,7 @@ /** * Folders Access Control Lists Management (RFC4314, RFC2086) * - * @version 0.6.2 + * @version 0.6.3 * @author Aleksander Machniak <alec@alec.pl> * * @@ -91,8 +91,11 @@ class acl extends rcube_plugin $users = array(); if ($this->init_ldap()) { - $this->ldap->set_pagesize((int)$this->rc->config->get('autocomplete_max', 15)); - $result = $this->ldap->search('*', $search); + $max = (int) $this->rc->config->get('autocomplete_max', 15); + $mode = (int) $this->rc->config->get('addressbook_search_mode'); + + $this->ldap->set_pagesize($max); + $result = $this->ldap->search('*', $search, $mode); foreach ($result->records as $record) { $user = $record['uid']; |
