mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-09 10:25:08 +00:00
Monotone-Parent: 0e8b32d9c70c2ce26b1625a032639e96a5e907a9
Monotone-Revision: 3edbc90046db007b2cea7d85505ba6bcecec6dd7 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-07-04T16:06:09 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSCalendarDate.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSEnumerator.h>
|
||||
#import <Foundation/NSException.h>
|
||||
#import <Foundation/NSKeyValueCoding.h>
|
||||
#import <Foundation/NSURL.h>
|
||||
@@ -837,8 +838,7 @@ static NSArray *childRecordFields = nil;
|
||||
folder = [self ocsFolder];
|
||||
channel = [folder acquireAclChannel];
|
||||
userRoles = [roles objectEnumerator];
|
||||
currentRole = [userRoles nextObject];
|
||||
while (currentRole)
|
||||
while ((currentRole = [userRoles nextObject]))
|
||||
{
|
||||
SQL = [NSString stringWithFormat: @"INSERT INTO %@"
|
||||
@" (c_object, c_uid, c_role)"
|
||||
@@ -846,7 +846,6 @@ static NSArray *childRecordFields = nil;
|
||||
[folder aclTableName],
|
||||
objectPath, uid, currentRole];
|
||||
[channel evaluateExpressionX: SQL];
|
||||
currentRole = [userRoles nextObject];
|
||||
}
|
||||
|
||||
[folder releaseChannel: channel];
|
||||
|
||||
Reference in New Issue
Block a user