[Svn] r5408 - trunk/plugins/acl

trac at roundcube.net trac at roundcube.net
Thu Nov 10 09:50:32 CET 2011


Author: alec
Date: 2011-11-10 02:50:32 -0600 (Thu, 10 Nov 2011)
New Revision: 5408

Modified:
   trunk/plugins/acl/acl.js
   trunk/plugins/acl/acl.php
Log:
- Support addressbook_search_mode


Modified: trunk/plugins/acl/acl.js
===================================================================
--- trunk/plugins/acl/acl.js	2011-11-10 08:18:54 UTC (rev 5407)
+++ trunk/plugins/acl/acl.js	2011-11-10 08:50:32 UTC (rev 5408)
@@ -1,7 +1,7 @@
 /**
  * ACL plugin script
  *
- * @version 0.6.2
+ * @version 0.6.3
  * @author Aleksander Machniak <alec at alec.pl>
  */
 

Modified: trunk/plugins/acl/acl.php
===================================================================
--- trunk/plugins/acl/acl.php	2011-11-10 08:18:54 UTC (rev 5407)
+++ trunk/plugins/acl/acl.php	2011-11-10 08:50:32 UTC (rev 5408)
@@ -3,7 +3,7 @@
 /**
  * Folders Access Control Lists Management (RFC4314, RFC2086)
  *
- * @version 0.6.2
+ * @version 0.6.3
  * @author Aleksander Machniak <alec at alec.pl>
  *
  *
@@ -91,9 +91,12 @@
         $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'];
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list