mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
New administration module
Monotone-Parent: 8542ad5d3580057a3e361ef25f6c24df41841c52 Monotone-Revision: f6040f9d8af2e51778344f97f1c76c9125f0af7b Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-08-13T10:40:25 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -384,18 +384,12 @@ static NSString *LDAPContactInfoAttribute = nil;
|
||||
SOGoUserFolder *userFolder;
|
||||
|
||||
folderType = [self queryParameterForKey: @"type"];
|
||||
if ([folderType length])
|
||||
{
|
||||
userFolder = [self clientObject];
|
||||
folders
|
||||
= [userFolder foldersOfType: folderType
|
||||
forUID: [userFolder ownerInContext: context]];
|
||||
result = [self _foldersResponseForResults: folders];
|
||||
}
|
||||
else
|
||||
result = [NSException exceptionWithHTTPStatus: 400
|
||||
reason: @"missing 'type' parameter"];
|
||||
|
||||
userFolder = [self clientObject];
|
||||
folders
|
||||
= [userFolder foldersOfType: folderType
|
||||
forUID: [userFolder ownerInContext: context]];
|
||||
result = [self _foldersResponseForResults: folders];
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user