fixed missing $this-> operator which prevented ACL read on sync - let categories class always enumerate group ACLs (it was skipped for LDAP backends)

This commit is contained in:
Christian Binder 2009-11-13 09:55:54 +00:00
parent 3d5bd129ca
commit 5dbc859f71

View File

@ -147,10 +147,7 @@ class categories
// load the grants
if ($this->account_id != -1 && is_null($this->grants))
{
// 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
$this->grants = $GLOBALS['egw']->acl->get_grants($app_name,
$app_name != 'addressbook' || $GLOBALS['egw_info']['server']['account_repository'] != 'ldap');
$this->grants = $GLOBALS['egw']->acl->get_grants($this->app_name);
}
$cats = array();
foreach(self::$cache as $cat_id => $cat)