mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
See ChangeLog
Monotone-Parent: ad53dc521ff4231b5a6c7a7185ce6deda193e7e8 Monotone-Revision: f84e4aaa7eb033904461e3ce48ce2ff0919a7a30 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-11-13T13:41:43 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -271,14 +271,15 @@
|
||||
- (void) _appendCollectionsMatchingFilter: (NSDictionary *) filter
|
||||
toResponse: (WOResponse *) r
|
||||
{
|
||||
NSString *prefix, *queryOwner, *uid;
|
||||
NSURL *prefix, *queryOwner;
|
||||
NSDictionary *folders;
|
||||
NSString *uid;
|
||||
|
||||
prefix = [self _baseDAVURLWithSuffix: @"users/"];
|
||||
queryOwner = [filter objectForKey: @"owner"];
|
||||
if ([queryOwner hasPrefix: prefix])
|
||||
prefix = [NSURL URLWithString: [self _baseDAVURLWithSuffix: @"users/"]];
|
||||
queryOwner = [NSURL URLWithString: [filter objectForKey: @"owner"]];
|
||||
if ([[queryOwner relativePath] hasPrefix: [prefix relativePath]])
|
||||
{
|
||||
uid = [queryOwner substringFromIndex: [prefix length]];
|
||||
uid = [[queryOwner relativePath] lastPathComponent];
|
||||
folders = [self foldersOfType: [filter objectForKey: @"resource-type"]
|
||||
matchingUID: uid];
|
||||
[self _appendFolders: folders toResponse: r];
|
||||
|
||||
Reference in New Issue
Block a user