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,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') {
$this->grants = $GLOBALS['egw']->acl->get_grants($app_name); $this->grants = $GLOBALS['egw']->acl->get_grants($app_name);
} }
}
/** /**
* return sql for predifined filters * return sql for predifined filters