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
This commit is contained in:
Lars Kneschke 2008-02-08 11:19:41 +00:00
parent 31f2ea4a07
commit 51f14c8d82

View File

@ -59,7 +59,13 @@
$this->app_name = $app_name; $this->app_name = $app_name;
$this->db = clone($GLOBALS['egw']->db); $this->db = clone($GLOBALS['egw']->db);
$this->db->set_app('phpgwapi'); $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);
}
} }
/** /**