From 5dbc859f7193b2cdc6c601ad2160926806ecd06f Mon Sep 17 00:00:00 2001 From: Christian Binder Date: Fri, 13 Nov 2009 09:55:54 +0000 Subject: [PATCH] fixed missing $this-> operator which prevented ACL read on sync - let categories class always enumerate group ACLs (it was skipped for LDAP backends) --- phpgwapi/inc/class.categories.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 15bba26460..8cd0a44456 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -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)