mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
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:
parent
31f2ea4a07
commit
51f14c8d82
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user