From 019e6ec6a92ad7076d150d988a497690148223ee Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 17 Dec 2008 14:53:16 +0000 Subject: [PATCH] Monotone-Parent: 1bc2d8d548fc0f35aa2c0bb3364da716249afeaa Monotone-Revision: 2b60f97c4d2741a2c88de56088329c326bed2aa1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-12-17T14:53:16 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/SOGoParentFolder.m | 37 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/SoObjects/SOGo/SOGoParentFolder.m b/SoObjects/SOGo/SOGoParentFolder.m index ae5b58969..78496dc93 100644 --- a/SoObjects/SOGo/SOGoParentFolder.m +++ b/SoObjects/SOGo/SOGoParentFolder.m @@ -107,7 +107,7 @@ static SoSecurityManager *sm = nil; subFolders = nil; OCSPath = nil; subFolderClass = Nil; - hasSubscribedSources = NO; +// hasSubscribedSources = NO; } return self; @@ -318,23 +318,28 @@ static SoSecurityManager *sm = nil; - (void) initSubFolders { + NSString *login; + if (!subFolders) { subFolders = [NSMutableDictionary new]; [self appendPersonalSources]; [self appendSystemSources]; + login = [[context activeUser] login]; + if ([login isEqualToString: owner]) + [self appendSubscribedSources]; } } -- (void) _appendSubscribedSourcesIfNeeded -{ - NSString *login; +// - (void) _appendSubscribedSourcesIfNeeded +// { +// NSString *login; - login = [[context activeUser] login]; - if ([login isEqualToString: owner]) - [self appendSubscribedSources]; - hasSubscribedSources = YES; -} +// login = [[context activeUser] login]; +// if ([login isEqualToString: owner]) +// [self appendSubscribedSources]; +// hasSubscribedSources = YES; +// } - (id) lookupName: (NSString *) name inContext: (WOContext *) lookupContext @@ -350,11 +355,11 @@ static SoSecurityManager *sm = nil; [self initSubFolders]; obj = [subFolders objectForKey: name]; - if (!obj && !hasSubscribedSources) - { - [self _appendSubscribedSourcesIfNeeded]; - obj = [subFolders objectForKey: name]; - } +// if (!obj && !hasSubscribedSources) +// { +// [self _appendSubscribedSourcesIfNeeded]; +// obj = [subFolders objectForKey: name]; +// } } return obj; @@ -364,8 +369,8 @@ static SoSecurityManager *sm = nil; { if (!subFolders) [self initSubFolders]; - if (!!hasSubscribedSources) - [self _appendSubscribedSourcesIfNeeded]; +// if (!!hasSubscribedSources) +// [self _appendSubscribedSourcesIfNeeded]; return [[subFolders allValues] sortedArrayUsingSelector: @selector (compare:)];