From 51f14c8d82c498b05652b898e67894fd5ebf50ab Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Fri, 8 Feb 2008 11:19:41 +0000 Subject: [PATCH] don't resolve group grants when using the addressbook, as resolving group memberships is currently extremly slow, with bigger installations maybe we can also fix it different --- phpgwapi/inc/class.categories.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 3fb89d978d..795990e689 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -59,7 +59,13 @@ $this->app_name = $app_name; $this->db = clone($GLOBALS['egw']->db); $this->db->set_app('phpgwapi'); - $this->grants = $GLOBALS['egw']->acl->get_grants($app_name); + #################################################### + # resolving the group members/grants is very slow with ldap accounts backend + # let's skip it for the addressbook, if we are using the ldap accounts backend + #################################################### + if($app_name != 'addressbook' && $GLOBALS['egw_info']['server']['account_repository'] != 'ldap') { + $this->grants = $GLOBALS['egw']->acl->get_grants($app_name); + } } /**