mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-26 00:43:22 +00:00
See ChangeLog
Monotone-Parent: f68bc0f7c4af372fd5c49f8961ad1605dd875d1f Monotone-Revision: 08c3123324ab89795cc2faa5f26bd5427cd30786 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-12-30T22:25:30 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -819,6 +819,17 @@ static NSArray *childRecordFields = nil;
|
||||
acls = [self aclsForUser: defaultUserID
|
||||
forObjectAtPath: objectPathArray];
|
||||
|
||||
// If we still don't have ACLs defined for this particular resource,
|
||||
// let's go get the system-wide defaults, if any.
|
||||
if (![acls count])
|
||||
{
|
||||
if ([[container nameInContainer] isEqualToString: @"Calendar"] ||
|
||||
[[container nameInContainer] isEqualToString: @"Contacts"])
|
||||
acls = [[NSUserDefaults standardUserDefaults]
|
||||
objectForKey: [NSString stringWithFormat: @"SOGo%@DefaultRoles",
|
||||
[container nameInContainer]]];
|
||||
}
|
||||
|
||||
return acls;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user