Improve cache cleanup when removing a group ACL
This commit is contained in:
parent
491e090fb4
commit
ee7fdcba9f
|
@ -1753,8 +1753,6 @@ static NSArray *childRecordFields = nil;
|
|||
for (i = 0; i < [usersAndGroups count]; i++)
|
||||
{
|
||||
uid = [usersAndGroups objectAtIndex: i];
|
||||
if (![uid hasPrefix: @"@"])
|
||||
{
|
||||
group = [SOGoGroup groupWithIdentifier: uid inDomain: domain];
|
||||
if (group)
|
||||
{
|
||||
|
@ -1770,12 +1768,12 @@ static NSArray *childRecordFields = nil;
|
|||
[groupsMembers addObject: [user login]];
|
||||
}
|
||||
|
||||
if (![uid hasPrefix: @"@"])
|
||||
// Prefix the UID with the character "@" when dealing with a group
|
||||
[usersAndGroups replaceObjectAtIndex: i
|
||||
withObject: [NSString stringWithFormat: @"@%@", uid]];
|
||||
}
|
||||
}
|
||||
}
|
||||
objectPath = [objectPathArray componentsJoinedByString: @"/"];
|
||||
aclsForObject = [[SOGoCache sharedCache] aclsForPath: objectPath];
|
||||
if (aclsForObject)
|
||||
|
|
Loading…
Reference in a new issue