mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 08:55:08 +00:00
Monotone-Parent: 2a058e00d9a205e44c2b7f7536cfbe616d115e72
Monotone-Revision: 4db4e94b1f353dbdc30ed2247f4848acd4afdb7e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-19T00:39:52 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
+16
-11
@@ -354,23 +354,23 @@ static BOOL kontactGroupDAV = YES;
|
||||
|
||||
- (SOGoDAVSet *) davAcl
|
||||
{
|
||||
NSArray *role;
|
||||
NSEnumerator *acls;
|
||||
NSArray *roles;
|
||||
NSEnumerator *uids;
|
||||
NSMutableDictionary *aclsDictionary;
|
||||
NSDictionary *currentAcl;
|
||||
NSString *currentUID;
|
||||
SoClassSecurityInfo *sInfo;
|
||||
|
||||
acls = [[self acls] objectEnumerator];
|
||||
aclsDictionary = [NSMutableDictionary dictionary];
|
||||
uids = [[self aclUsers] objectEnumerator];
|
||||
sInfo = [[self class] soClassSecurityInfo];
|
||||
|
||||
currentAcl = [acls nextObject];
|
||||
while (currentAcl)
|
||||
currentUID = [uids nextObject];
|
||||
while (currentUID)
|
||||
{
|
||||
role = [NSArray arrayWithObject: [currentAcl objectForKey: @"role"]];
|
||||
[aclsDictionary setObject: [sInfo DAVPermissionsForRoles: role]
|
||||
forKey: [currentAcl objectForKey: @"uid"]];
|
||||
currentAcl = [acls nextObject];
|
||||
roles = [self aclsForUser: currentUID];
|
||||
[aclsDictionary setObject: [sInfo DAVPermissionsForRoles: roles]
|
||||
forKey: currentUID];
|
||||
currentUID = [uids nextObject];
|
||||
}
|
||||
[self _appendRolesForPseudoPrincipals: aclsDictionary
|
||||
withClassSecurityInfo: sInfo];
|
||||
@@ -707,7 +707,7 @@ static BOOL kontactGroupDAV = YES;
|
||||
|
||||
/* acls */
|
||||
|
||||
- (NSArray *) acls
|
||||
- (NSArray *) aclUsers
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
||||
@@ -739,6 +739,11 @@ static BOOL kontactGroupDAV = YES;
|
||||
[self subclassResponsibility: _cmd];
|
||||
}
|
||||
|
||||
- (BOOL) hasSupportForDefaultRoles
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
/* description */
|
||||
|
||||
- (void)appendAttributesToDescription:(NSMutableString *)_ms {
|
||||
|
||||
Reference in New Issue
Block a user