From 03ef2ce3f330ff28e77fa30c5f7290e03b72700c Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 6 Feb 2009 20:11:11 +0000 Subject: [PATCH] Monotone-Parent: c7cef69f421b88269a1f0f48450e7746468a6cb8 Monotone-Revision: aa77eb2904bbe4270428126e707735db8d28bea4 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-02-06T20:11:11 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/SOGoGCSFolder.m | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 84d6d81b1..aa15b09bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-02-06 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoGCSFolder.m ([SOGoGCSFolder + -aclsForUser:uidforObjectAtPath:objectPathArray]): cache an empty + array if not acl have been returned for the specified user. + * SoObjects/Contacts/SOGoContactGCSFolder.m ([SOGoContactGCSFolder -lookupContactsWithFilter:filtersortBy:sortKeyordering:sortOrdering]): same as below. diff --git a/SoObjects/SOGo/SOGoGCSFolder.m b/SoObjects/SOGo/SOGoGCSFolder.m index d36eead45..8ae3a117b 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.m +++ b/SoObjects/SOGo/SOGoGCSFolder.m @@ -817,6 +817,8 @@ static NSArray *childRecordFields = nil; if (!acls) { acls = [self _fetchAclsForUser: uid forObjectAtPath: objectPath]; + if (!acls) + acls = [NSArray array]; [self _cacheRoles: acls forUser: uid forObjectAtPath: objectPath]; }