From 1808dddda55b58e9d521d6cf55291e2749f6681b Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 20 Dec 2007 21:56:37 +0000 Subject: [PATCH] Monotone-Parent: 51154327df2daa3fe6e616128e1e689cd3c69683 Monotone-Revision: 829091932d60b0fc62276de7ab03d48d248b54e1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-12-20T21:56:37 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ SoObjects/SOGo/SOGoContentObject.m | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2e2565e93..cefc413c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-12-20 Wolfgang Sourdeau + + * SoObjects/SOGo/SOGoContentObject.m ([SOGoContentObject + -aclsForUser:uid]): removed useless ACL checks on the current + object to reduce DB usage. + 2007-12-17 Wolfgang Sourdeau * UI/MailerUI/UIxMailEditor.m ([UIxMailEditor -attachmentNames]): diff --git a/SoObjects/SOGo/SOGoContentObject.m b/SoObjects/SOGo/SOGoContentObject.m index 73cc1401e..9665eda90 100644 --- a/SoObjects/SOGo/SOGoContentObject.m +++ b/SoObjects/SOGo/SOGoContentObject.m @@ -393,9 +393,10 @@ NSArray *ownAcls, *containerAcls; acls = [NSMutableArray array]; - ownAcls = [container aclsForUser: uid - forObjectAtPath: [self pathArrayToSOGoObject]]; - [acls addObjectsFromArray: ownAcls]; + /* this is unused... */ +// ownAcls = [container aclsForUser: uid +// forObjectAtPath: [self pathArrayToSOGoObject]]; +// [acls addObjectsFromArray: ownAcls]; containerAcls = [container aclsForUser: uid]; if ([containerAcls count] > 0) {