diff --git a/ChangeLog b/ChangeLog index b44dcdcfe..c295a459e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-11-04 Wolfgang Sourdeau + + * Tools/SOGoSockDOperation.m (_getFolderWithId:forUser:): invoke + -[SOGoParentFolder lookupPersonalFolder:ignoringRights:] directly, + in order to avoid a useless permission check. + 2010-11-03 Francis Lachapelle * UI/WebServerResources/SOGoDataTable.js (remove): we must diff --git a/Tools/SOGoSockDOperation.m b/Tools/SOGoSockDOperation.m index 82159751a..6e7057a34 100644 --- a/Tools/SOGoSockDOperation.m +++ b/Tools/SOGoSockDOperation.m @@ -235,7 +235,9 @@ Class SOGoContactSourceFolderKlass = Nil; userFolder = [SOGoUserFolder objectWithName: uid inContainer: nil]; parentFolder = [userFolder lookupName: @"Contacts" inContext: nil acquire: NO]; - folder = [parentFolder lookupName: folderId inContext: nil acquire: NO]; + /* Note that this prevent lookup on subscribed addressbooks. */ + folder = [parentFolder lookupPersonalFolder: folderId + ignoringRights: YES]; return folder; }