fix the "to many categories" problem with ldap backend

This commit is contained in:
Cornelius Weiß 2008-02-12 15:55:26 +00:00
parent 5fc31705b2
commit 86f6654c8c

View File

@ -63,7 +63,9 @@
# resolving the group members/grants is very slow with ldap accounts backend # 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 # 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') { if($app_name == 'addressbook' && $GLOBALS['egw_info']['server']['account_repository'] == 'ldap') {
$this->grants = $GLOBALS['egw']->acl->get_grants($app_name, false);
} else {
$this->grants = $GLOBALS['egw']->acl->get_grants($app_name); $this->grants = $GLOBALS['egw']->acl->get_grants($app_name);
} }
} }