mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-08 13:05:28 +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:
@@ -8,6 +8,15 @@
|
||||
UI/WebServerResources/SchedulerUI.js
|
||||
Fixed the escaping of characters and associated
|
||||
search methods.
|
||||
* SoObjects/SOGo/SOGoGCSFolder.m
|
||||
([SOGoGCSFolder aclsForUser:forObjectAtPath:]):
|
||||
Added two new defaults to control the default
|
||||
ACLs when none are specified:
|
||||
SOGoCalendarDefaultRoles and SOGoContactsDefaultRoles
|
||||
They are both arrays in which we set strings,
|
||||
for example :
|
||||
SOGoCalendarDefaultRoles = ("ObjectCreator", "PublicViewer");
|
||||
SOGoContactsDefaultRoles = ("ObjectEditor");
|
||||
|
||||
2008-12-30 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
|
||||
@@ -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