fix the "to many categories" problem with ldap backend

This commit is contained in:
Cornelius Weiß 2008-02-12 15:39:52 +00:00
parent 581d5b2625
commit 638fe65b75

View File

@ -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);
} }
} }