Monotone-Parent: 9995223a0452fd05c8a2bc29a4e75bddaa07438b
Monotone-Revision: e41f59857cafb636d38404bf829a9113c529ffd6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-17T15:19:19 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
b37c58e765
commit
1db7523e11
|
@ -544,7 +544,7 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||||
NSDictionary *currentGrant, *userHREF;
|
NSDictionary *currentGrant, *userHREF;
|
||||||
NSString *principalURL;
|
NSString *principalURL;
|
||||||
|
|
||||||
currentAce = [NSMutableArray new];
|
currentAce = [NSMutableArray array];
|
||||||
roles = [[SOGoUser userWithLogin: currentUID roles: nil]
|
roles = [[SOGoUser userWithLogin: currentUID roles: nil]
|
||||||
rolesForObject: self
|
rolesForObject: self
|
||||||
inContext: context];
|
inContext: context];
|
||||||
|
@ -562,7 +562,6 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||||
[currentAce addObject: currentGrant];
|
[currentAce addObject: currentGrant];
|
||||||
[aces addObject: davElementWithContent (@"ace", @"DAV:", currentAce)];
|
[aces addObject: davElementWithContent (@"ace", @"DAV:", currentAce)];
|
||||||
}
|
}
|
||||||
[currentAce release];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) _fillAcesWithRolesForPseudoPrincipals: (NSMutableArray *) aces
|
- (void) _fillAcesWithRolesForPseudoPrincipals: (NSMutableArray *) aces
|
||||||
|
@ -644,7 +643,7 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||||
NSMutableArray *responses;
|
NSMutableArray *responses;
|
||||||
NSArray *responseElements;
|
NSArray *responseElements;
|
||||||
|
|
||||||
responses = [NSMutableArray new];
|
responses = [NSMutableArray array];
|
||||||
|
|
||||||
hrefList = [hrefs objectEnumerator];
|
hrefList = [hrefs objectEnumerator];
|
||||||
while ((currentHref = [hrefList nextObject]))
|
while ((currentHref = [hrefList nextObject]))
|
||||||
|
@ -660,7 +659,6 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||||
}
|
}
|
||||||
|
|
||||||
multiStatus = davElementWithContent (@"multistatus", @"DAV:", responses);
|
multiStatus = davElementWithContent (@"multistatus", @"DAV:", responses);
|
||||||
[responses release];
|
|
||||||
|
|
||||||
return multiStatus;
|
return multiStatus;
|
||||||
}
|
}
|
||||||
|
@ -697,11 +695,10 @@ SEL SOGoSelectorForPropertySetter (NSString *property)
|
||||||
NSMutableArray *hrefs;
|
NSMutableArray *hrefs;
|
||||||
NSDictionary *response;
|
NSDictionary *response;
|
||||||
|
|
||||||
hrefs = [NSMutableArray new];
|
hrefs = [NSMutableArray array];
|
||||||
[self _fillArrayWithPrincipalsOwnedBySelf: hrefs];
|
[self _fillArrayWithPrincipalsOwnedBySelf: hrefs];
|
||||||
|
|
||||||
response = [self _formalizePrincipalMatchResponse: hrefs];
|
response = [self _formalizePrincipalMatchResponse: hrefs];
|
||||||
[hrefs release];
|
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue