resolve the group grants only, when the we are not using the ldap accounts backend, because resolving the memberships using ldap is very slow currently

This commit is contained in:
Lars Kneschke 2008-02-08 11:29:37 +00:00
parent 48a17e28c1
commit d31d731513

View File

@ -59,7 +59,9 @@
$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);
if($app_name != 'addressbook' && $GLOBALS['egw_info']['server']['account_repository'] != 'ldap') {
$this->grants = $GLOBALS['egw']->acl->get_grants($app_name);
}
}
/**