From f5913f2127ede7e8dbb400554a0966ee6b43e1f5 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 12 Jun 2007 22:09:32 +0000 Subject: [PATCH] Monotone-Parent: 9ef00254e19a7cd3faee64fba851af4a262d9b96 Monotone-Revision: a591a00688fc85c847f8d8141b114570c3ecef81 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-12T22:09:32 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ SoObjects/Mailer/SOGoMailObject.m | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 684ef4aae..189cd503a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-06-12 Wolfgang Sourdeau + * SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject + -aclsForUser:uid]): implemented method by forwarding the request + to the container. This fixes a bug where users could no longer + read emails from shared folders. + * SoObjects/Appointments/SOGoCalendarComponent.m ([SOGoCalendarComponent -init]): "isNew" is no longer defined here, but rather in its parent class. diff --git a/SoObjects/Mailer/SOGoMailObject.m b/SoObjects/Mailer/SOGoMailObject.m index 8f91f247f..bfa226d59 100644 --- a/SoObjects/Mailer/SOGoMailObject.m +++ b/SoObjects/Mailer/SOGoMailObject.m @@ -680,12 +680,15 @@ static BOOL debugSoParts = NO; /* name lookup */ -- (id)lookupImap4BodyPartKey:(NSString *)_key inContext:(id)_ctx { +- (id) lookupImap4BodyPartKey: (NSString *) _key + inContext: (id) _ctx +{ // TODO: we might want to check for existence prior controller creation Class clazz; clazz = [SOGoMailBodyPart bodyPartClassForKey:_key inContext:_ctx]; - return [[[clazz alloc] initWithName:_key inContainer:self] autorelease]; + + return [clazz objectWithName:_key inContainer: self]; } - (id)lookupName:(NSString *)_key inContext:(id)_ctx acquire:(BOOL)_flag { @@ -1064,6 +1067,11 @@ static BOOL debugSoParts = NO; return @"IPM.Message"; /* email, default class */ } +- (NSArray *) aclsForUser: (NSString *) uid +{ + return [container aclsForUser: uid]; +} + /* debugging */ - (BOOL)isDebuggingEnabled {