forked from extern/egroupware
fix the "to many categories" problem with ldap backend
This commit is contained in:
parent
581d5b2625
commit
638fe65b75
@ -59,8 +59,10 @@
|
|||||||
$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');
|
||||||
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);
|
$this->grants = $GLOBALS['egw']->acl->get_grants($app_name, false);
|
||||||
|
} else {
|
||||||
|
$this->grants = $GLOBALS['egw']->acl->get_grants($app_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user