diff --git a/api/src/Acl.php b/api/src/Acl.php index 48c77fbda2..ecf5f0dfc3 100644 --- a/api/src/Acl.php +++ b/api/src/Acl.php @@ -44,6 +44,12 @@ class Acl */ const TABLE = 'egw_acl'; + /** + * Cache for grants + * @var array + */ + var $cache = array(); + /** * Constants for acl rights, like old EGW_ACL_* defines */ @@ -662,7 +668,7 @@ class Acl if (!$app) $app = $GLOBALS['egw_info']['flags']['currentapp']; if (!$user) $user = $this->account_id; - static $cache = array(); // some caching withing the request + $cache = $this->cache; // some caching within the request $grants =& $cache[$app][$user]; if (!isset($grants))